summaryrefslogtreecommitdiff
path: root/src/svg
diff options
context:
space:
mode:
authorscuri <scuri>2010-10-19 15:48:26 +0000
committerscuri <scuri>2010-10-19 15:48:26 +0000
commit736712ef1e87d38e52e502d859cca2dcad56a3ce (patch)
tree49ec51ce6376e2797258cd68d4db64b4f9452b4d /src/svg
parentd965dd8953d37a41ab8958a3ff05d0d9aa14c09f (diff)
*** empty log message ***
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/cdsvg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/svg/cdsvg.c b/src/svg/cdsvg.c
index b84fb48..bfde533 100644
--- a/src/svg/cdsvg.c
+++ b/src/svg/cdsvg.c
@@ -58,12 +58,6 @@ static void cdtransform(cdCtxCanvas *ctxcanvas, const double* matrix);
static void cdkillcanvas(cdCtxCanvas* ctxcanvas)
{
- if (ctxcanvas->old_locale)
- {
- setlocale(LC_NUMERIC, ctxcanvas->old_locale);
- free(ctxcanvas->old_locale);
- }
-
if (ctxcanvas->clip_control)
fprintf(ctxcanvas->file, "</g>\n"); /* close clipping container */
@@ -75,6 +69,12 @@ static void cdkillcanvas(cdCtxCanvas* ctxcanvas)
fclose(ctxcanvas->file);
+ if (ctxcanvas->old_locale)
+ {
+ setlocale(LC_NUMERIC, ctxcanvas->old_locale);
+ free(ctxcanvas->old_locale);
+ }
+
memset(ctxcanvas, 0, sizeof(cdCtxCanvas));
free(ctxcanvas);
}