From 2d2d5628cfc38a3c5817a5c1c3d6cafba0f3241c Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 19 Jan 2012 19:11:29 +0000 Subject: [PATCH] --- MagickCore/draw.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 40e4ced06..049b72578 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -4651,13 +4651,11 @@ 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->fill_pattern != (Image *) NULL) + clone_info->fill_pattern=DestroyImage(clone_info->fill_pattern); 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,exception); - } + clone_info->fill_pattern=CloneImage(clone_info->stroke_pattern,0,0, + MagickTrue,exception); clone_info->stroke.alpha=(Quantum) TransparentAlpha; clone_info->stroke_width=0.0; clone_info->fill_rule=NonZeroRule; -- 2.50.1