]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 15 Jan 2014 00:43:50 +0000 (00:43 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 15 Jan 2014 00:43:50 +0000 (00:43 +0000)
MagickWand/drawing-wand.c

index ef8e5f366da377e9010e8e2593a83150c10fbb0f..ca07122b79295e4274638d472fe2c987023f5f25 100644 (file)
@@ -5511,7 +5511,11 @@ WandExport MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
               return(MagickFalse);
             }
           for (i=0; i < n_new; i++)
-            CurrentContext->dash_pattern[i]=dasharray[i];
+          {
+            CurrentContext->dash_pattern[i]=0.0;
+            if (dasharray != (double *) NULL)
+              CurrentContext->dash_pattern[i]=dasharray[i];
+          }
           CurrentContext->dash_pattern[n_new]=0.0;
         }
       (void) MvgPrintf(wand,"stroke-dasharray ");