]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/geometry.c
sigmoidal-contrast: prevent argument out of range and remove unnecessary ClampToQuantum
[imagemagick] / MagickCore / geometry.c
index cb87ac15de846a7c2cf8bf98fd27b6a9b5f35635..dccce5cccfc79c152ec610e4c4b60ed08e652913 100644 (file)
@@ -1072,10 +1072,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;
     }