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

index cb87ac15de846a7c2cf8bf98fd27b6a9b5f35635..baeb0b04f742b042459f05d9ef441214982a91f1 100644 (file)
@@ -289,10 +289,7 @@ MagickExport MagickStatusType GetGeometry(const char *geometry,ssize_t *x,
   if ((flags & PercentValue) != 0)
     {
       if (((flags & SeparatorValue) == 0) && ((flags & HeightValue) == 0))
-        {
-          *height=(*width);
-          flags|=HeightValue;
-        }
+        *height=(*width);
       if (((flags & SeparatorValue) != 0) && ((flags & WidthValue) == 0))
         *width=(*height);
     }
@@ -1072,10 +1069,7 @@ MagickExport MagickStatusType ParseGeometry(const char *geometry,
   if ((flags & PercentValue) != 0)
     {
       if (((flags & SeparatorValue) == 0) && ((flags & SigmaValue) == 0))
-        {
-          geometry_info->sigma=geometry_info->rho;
-          flags|=SigmaValue;
-        }
+        geometry_info->sigma=geometry_info->rho;
       if (((flags & SeparatorValue) != 0) && ((flags & RhoValue) == 0))
         geometry_info->rho=geometry_info->sigma;
     }