]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 3 Jun 2015 13:53:05 +0000 (13:53 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 3 Jun 2015 13:53:05 +0000 (13:53 +0000)
MagickWand/drawing-wand.c

index afbcd38236431c0c09a6405fe4afebe9701f1421..27d3ba64fe91e3127d41d2a35ba4d35e9fe4a7f5 100644 (file)
@@ -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);