(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 17 Feb 2013 22:11:27 +0000 (22:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 17 Feb 2013 22:11:27 +0000 (22:11 +0000)
MagickCore/option.c
MagickCore/property.c

index 719cee3b0ccbc1a4edad996e96621a966260f705..ac9457278dfb1987fe6902b151c4f3de910bdeb6 100644 (file)
@@ -264,8 +264,8 @@ static const OptionInfo
     { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
     { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
     { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
-    { "+charcoal", 0L, DeprecateOptionFlag, MagickTrue },
-    { "-charcoal", 0L, SimpleOperatorFlag, MagickFalse },
+    { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
+    { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
     { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
     { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
     { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
index 01a7cfb15e89b108fb0a6ce7190b25a1cf0ff2ca..0731b4ade820ecbf1a7947f9a806c8f5bb831432 100644 (file)
@@ -2242,6 +2242,7 @@ static const char *GetMagickPropertyLetter(const ImageInfo *image_info,
     case 'f': /* Filename without directory component */
     {
       GetPathComponent(image->magick_filename,TailPath,value);
+      string=value;
       break;
     }
     case 'g': /* Image geometry, canvas and offset  %Wx%H+%X+%Y */
@@ -3110,12 +3111,13 @@ MagickExport char *InterpretImageProperties(const ImageInfo *image_info,
         continue;
       }
       value=GetMagickPropertyLetter(image_info,image,*p, exception);
-      if (value != (char *) NULL) {
-        AppendString2Text(value);
-        continue;
-      }
-      (void) ThrowMagickException(exception,GetMagickModule(),
-          OptionWarning,"UnknownImageProperty","\"%%%c\"",*p);
+      if (value != (char *) NULL)
+        {
+          AppendString2Text(value);
+          continue;
+        }
+      (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning,
+        "UnknownImageProperty","\"%%%c\"",*p);
       continue;
     }