From: cristy Date: Wed, 3 Jun 2015 13:53:05 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~970 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b73762e1f6ffa8d5769c15784b68ed5ce7164d6a;p=imagemagick --- diff --git a/MagickWand/drawing-wand.c b/MagickWand/drawing-wand.c index afbcd3823..27d3ba64f 100644 --- a/MagickWand/drawing-wand.c +++ b/MagickWand/drawing-wand.c @@ -2441,7 +2441,8 @@ WandExport char *DrawGetVectorGraphics(DrawingWand *wand) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); xml_info=NewXMLTreeTag("drawing-wand"); if (xml_info == (XMLTreeInfo *) NULL) - return(char *) NULL; + return((char *) NULL); + (void) SetXMLTreeContent(xml_info," "); GetPixelInfo(wand->image,&pixel); child=AddChildToXMLTree(xml_info,"clip-path",0); if (child != (XMLTreeInfo *) NULL) @@ -2507,7 +2508,8 @@ WandExport char *DrawGetVectorGraphics(DrawingWand *wand) if (child != (XMLTreeInfo *) NULL) { (void) CopyMagickString(value,CommandOptionToMnemonic( - MagickStretchOptions,(ssize_t) CurrentContext->stretch),MagickPathExtent); + MagickStretchOptions,(ssize_t) CurrentContext->stretch), + MagickPathExtent); (void) SetXMLTreeContent(child,value); } child=AddChildToXMLTree(xml_info,"font-style",0); @@ -2528,7 +2530,8 @@ WandExport char *DrawGetVectorGraphics(DrawingWand *wand) if (child != (XMLTreeInfo *) NULL) { (void) CopyMagickString(value,CommandOptionToMnemonic( - MagickGravityOptions,(ssize_t) CurrentContext->gravity),MagickPathExtent); + MagickGravityOptions,(ssize_t) CurrentContext->gravity), + MagickPathExtent); (void) SetXMLTreeContent(child,value); } child=AddChildToXMLTree(xml_info,"stroke",0); @@ -2577,8 +2580,9 @@ WandExport char *DrawGetVectorGraphics(DrawingWand *wand) child=AddChildToXMLTree(xml_info,"stroke-linecap",0); if (child != (XMLTreeInfo *) NULL) { - (void) CopyMagickString(value,CommandOptionToMnemonic(MagickLineCapOptions, - (ssize_t) CurrentContext->linecap),MagickPathExtent); + (void) CopyMagickString(value,CommandOptionToMnemonic( + MagickLineCapOptions,(ssize_t) CurrentContext->linecap), + MagickPathExtent); (void) SetXMLTreeContent(child,value); } child=AddChildToXMLTree(xml_info,"stroke-linejoin",0);