From 047740653043b7fa79a042152a70e158f4d3ab97 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 3 Dec 2007 01:19:44 +0000 Subject: [PATCH] Fix 1830670: Use the 'C' locale when loading and saving sketches. git-svn-id: http://svn.voria.com/code@1173 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/duckmatic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp index fec7061..37aefe3 100644 --- a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp +++ b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp @@ -817,6 +817,7 @@ Duckmatic::find_bezier(synfig::Point pos, synfig::Real scale, synfig::Real radiu bool Duckmatic::save_sketch(const synfig::String& filename)const { + ChangeLocale change_locale(LC_NUMERIC, "C"); std::ofstream file(filename.c_str()); if(!file)return false; @@ -850,6 +851,7 @@ Duckmatic::save_sketch(const synfig::String& filename)const bool Duckmatic::load_sketch(const synfig::String& filename) { + ChangeLocale change_locale(LC_NUMERIC, "C"); std::ifstream file(filename.c_str()); if(!file) -- 2.7.4