]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/geometry.c
(no commit message)
[imagemagick] / 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);
     }