From: cristy Date: Sat, 4 Jul 2015 18:52:39 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~811 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb35ee6300d361f37fb82a0883e707a63b30f4fd;p=imagemagick --- diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index e5f907787..732da303f 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -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'))