From abdd5b7b22d274f50a16cc9855ea3d4040af319c Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 18 Jan 2012 03:02:15 +0000 Subject: [PATCH] --- MagickCore/image.c | 2 +- MagickCore/magick.c | 17 +++++++---------- MagickCore/property.c | 2 +- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/MagickCore/image.c b/MagickCore/image.c index 102f66a32..72498c752 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -4028,7 +4028,7 @@ MagickExport MagickBooleanType SyncImage(Image *image,ExceptionInfo *exception) % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% SyncImageSettings() sync the image_info options into per-image attributes. +% SyncImageSettings() syncs the image_info options into per-image attributes. % % The format of the SyncImageSettings method is: % diff --git a/MagickCore/magick.c b/MagickCore/magick.c index b44ddf4f3..0b6772b60 100644 --- a/MagickCore/magick.c +++ b/MagickCore/magick.c @@ -1508,9 +1508,9 @@ MagickExport MagickInfo *SetMagickInfo(const char *name) % % An input argument of 0 returns the current precision setting. % -% A negative value will force precision to reset to a default value -% according to the environment variable "MAGICK_PRECISION", the current -% 'policy' configuration setting, or the default value of '6', in that order. +% A negative value forces the precision to reset to a default value according +% to the environment variable "MAGICK_PRECISION", the current 'policy' +% configuration setting, or the default value of '6', in that order. % % The format of the SetMagickPrecision method is: % @@ -1528,19 +1528,16 @@ MagickExport int SetMagickPrecision(const int precision) static int magick_precision = 0; - (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); - if (precision > 0) - magick_precision = precision; - - if (precision < 0 || magick_precision == 0) + magick_precision=precision; + if ((precision < 0) || (magick_precision == 0)) { char *limit; /* - Precision Reset, or it has not been set yet + Precision reset, or it has not been set yet */ magick_precision = MagickPrecision; limit=GetEnvironmentValue("MAGICK_PRECISION"); @@ -1548,7 +1545,7 @@ MagickExport int SetMagickPrecision(const int precision) limit=GetPolicyValue("precision"); if (limit != (char *) NULL) { - magick_precision = StringToInteger(limit); + magick_precision=StringToInteger(limit); limit=DestroyString(limit); } } diff --git a/MagickCore/property.c b/MagickCore/property.c index 4c727b7db..ca6be6c18 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -2385,7 +2385,7 @@ MagickExport const char *GetMagickProperty(const ImageInfo *image_info, } if (LocaleNCompare("scene",property,5) == 0) { - /* FUTURE: I am not certain this properity return makes sense! */ + /* FUTURE: I am not certain this property return makes sense! */ (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double) image->scene); if (image_info->number_scenes != 0) -- 2.40.0