]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 12 Aug 2012 20:55:34 +0000 (20:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 12 Aug 2012 20:55:34 +0000 (20:55 +0000)
MagickCore/geometry.c

index baeb0b04f742b042459f05d9ef441214982a91f1..dccce5cccfc79c152ec610e4c4b60ed08e652913 100644 (file)
@@ -289,7 +289,10 @@ MagickExport MagickStatusType GetGeometry(const char *geometry,ssize_t *x,
   if ((flags & PercentValue) != 0)
     {
       if (((flags & SeparatorValue) == 0) && ((flags & HeightValue) == 0))
-        *height=(*width);
+        {
+          *height=(*width);
+          flags|=HeightValue;
+        }
       if (((flags & SeparatorValue) != 0) && ((flags & WidthValue) == 0))
         *width=(*height);
     }