From e8d7cc57f2df54720b699a084f999d4ba619a28e Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 24 Nov 2011 18:56:11 +0000 Subject: [PATCH] --- coders/svg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/coders/svg.c b/coders/svg.c index bd62d50ce..4275deb17 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -1092,6 +1092,10 @@ static void SVGStartElement(void *context,const xmlChar *name, if (LocaleCompare((const char *) name,"text") == 0) { (void) FormatLocaleFile(svg_info->file,"push graphic-context\n"); + svg_info->bounds.x=0; + svg_info->bounds.y=0; + svg_info->bounds.width=0; + svg_info->bounds.height=0; break; } if (LocaleCompare((const char *) name,"tspan") == 0) @@ -2403,7 +2407,8 @@ static void SVGEndElement(void *context,const xmlChar *name) *text; text=EscapeString(svg_info->text,'\''); - (void) FormatLocaleFile(svg_info->file,"text 0,0 '%s'\n",text); + (void) FormatLocaleFile(svg_info->file,"text %g,%g '%s'\n", + svg_info->bounds.x,svg_info->bounds.y,text); text=DestroyString(text); *svg_info->text='\0'; } -- 2.40.0