]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 18 Jan 2012 03:02:15 +0000 (03:02 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 18 Jan 2012 03:02:15 +0000 (03:02 +0000)
MagickCore/image.c
MagickCore/magick.c
MagickCore/property.c

index 102f66a3227332551e0850e2e5d4e5865547c951..72498c75260f3062e76bc1bcd4dc28ff2feda21c 100644 (file)
@@ -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:
 %
index b44ddf4f38b761ab7e998dfa6d88f7352a06e0ea..0b6772b60ecb4918fd8a08aac4e24ce198fe9b76 100644 (file)
@@ -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);
         }
     }
index 4c727b7db3dc07e92fc257de64f446cf0ce92479..ca6be6c18bb3f1a900f07a0949d0d492fed14a5c 100644 (file)
@@ -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)