]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 19 Jan 2012 16:04:04 +0000 (16:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 19 Jan 2012 16:04:04 +0000 (16:04 +0000)
MagickCore/draw.c

index a464522391a73bd4fa42a7910f972e1cbcaa9529..0c3cc49cef419130405c9a7313f7b014687fc342 100644 (file)
@@ -4651,6 +4651,13 @@ static MagickBooleanType DrawStrokePolygon(Image *image,
       "    begin draw-stroke-polygon");
   clone_info=CloneDrawInfo((ImageInfo *) NULL,draw_info);
   clone_info->fill=draw_info->stroke;
+  if (clone_info->stroke_pattern != (Image *) NULL)
+    {
+      if (clone_info->fill_pattern != (Image *) NULL)
+        clone_info->fill_pattern=DestroyImage(clone_info->fill_pattern);
+      clone_info->fill_pattern=CloneImage(clone_info->stroke_pattern,0,0,
+        MagickTrue,&clone_info->stroke_pattern->exception);
+    }
   clone_info->stroke.alpha=(Quantum) TransparentAlpha;
   clone_info->stroke_width=0.0;
   clone_info->fill_rule=NonZeroRule;