From: anthony Date: Mon, 16 Jan 2012 06:38:16 +0000 (+0000) Subject: precision - handle illegal negative input! X-Git-Tag: 7.0.1-0~6373 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82c0992e05125163b3b7a16ab398f7422325f6bf;p=imagemagick precision - handle illegal negative input! --- diff --git a/MagickCore/magick.c b/MagickCore/magick.c index e44f2881b..27f7c0ecd 100644 --- a/MagickCore/magick.c +++ b/MagickCore/magick.c @@ -1538,7 +1538,7 @@ MagickExport int SetMagickPrecision(const int precision) magick_precision = 0; (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); - if (precision != 0) + if (precision > 0) magick_precision=precision; return(magick_precision); }