summaryrefslogtreecommitdiffstats
path: root/src/file-update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/file-update.cpp')
-rw-r--r--src/file-update.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/file-update.cpp b/src/file-update.cpp
index 2275ab1c3..8fb3b3111 100644
--- a/src/file-update.cpp
+++ b/src/file-update.cpp
@@ -150,12 +150,15 @@ void fix_update(SPObject *o) {
void sp_file_convert_text_baseline_spacing(SPDocument *doc)
{
+ char *oldlocale = g_strdup(setlocale(LC_NUMERIC, NULL));
setlocale(LC_NUMERIC,"C");
sp_file_text_run_recursive(fix_blank_line, doc->getRoot());
sp_file_text_run_recursive(fix_line_spacing, doc->getRoot());
sp_file_text_run_recursive(fix_font_size, doc->getRoot());
+ setlocale(LC_NUMERIC, oldlocale);
+ g_free(oldlocale);
+
sp_file_text_run_recursive(fix_update, doc->getRoot());
- setlocale(LC_NUMERIC,"");
}
void sp_file_convert_font_name(SPDocument *doc)