]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 4 Jul 2015 18:52:39 +0000 (18:52 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 4 Jul 2015 18:52:39 +0000 (18:52 +0000)
MagickCore/geometry.c

index e5f907787e65f17ad0cddbc53fdeb6861de43e45..732da303f41982557c6aaeaa28f51b6cb5a4690c 100644 (file)
@@ -933,6 +933,8 @@ MagickExport MagickStatusType ParseGeometry(const char *geometry,
     return(flags);
   q=p;
   value=StringToDouble(p,&q);
+  if (LocaleNCompare(p,"0x",2) == 0)
+    value=(double) strtol(p,&q,10);
   c=(int) ((unsigned char) *q);
   if ((c == 215) || (*q == 'x') || (*q == 'X') || (*q == ',') ||
       (*q == '/') || (*q == ':') || (*q =='\0'))