]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 1 Jun 2016 14:14:08 +0000 (10:14 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 1 Jun 2016 14:14:08 +0000 (10:14 -0400)
MagickCore/draw.c

index c53ea4cb6fab6f30c7c6d1c39d25b7b86b04b0d2..4feece41ca9b331872e940732656762c8b6e01a0 100644 (file)
@@ -2279,6 +2279,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
                   {
                     (void) ThrowMagickException(exception,GetMagickModule(),
                       DrawError,"UnbalancedGraphicContextPushPop","`%s'",token);
+                    status=MagickFalse;
                     n=0;
                     break;
                   }
@@ -2638,6 +2639,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
                     (void) ThrowMagickException(exception,GetMagickModule(),
                       ResourceLimitError,"MemoryAllocationFailed","`%s'",
                       image->filename);
+                    status=MagickFalse;
                     break;
                   }
                 for (j=0; j < x; j++)