]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Thu, 6 Jun 2019 22:51:17 +0000 (18:51 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Thu, 6 Jun 2019 22:51:17 +0000 (18:51 -0400)
MagickCore/draw.c

index b57d60e447f73760d8686b0f304c6863fa13f010..d2b56c2db9c4099a1b3ae83255f91c0cf11651ad 100644 (file)
@@ -2513,7 +2513,7 @@ static MagickBooleanType RenderMVGContent(Image *image,
     primitive=AcquireString(draw_info->primitive);
   else
     if ((strlen(draw_info->primitive) > 1) &&
-        (*(draw_info->primitive+1) != '-'))
+        (*(draw_info->primitive+1) != '-') && (depth == 1))
       primitive=FileToString(draw_info->primitive+1,~0UL,exception);
   if (primitive == (char *) NULL)
     return(MagickFalse);