]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Fri, 6 Apr 2012 02:31:40 +0000 (02:31 +0000)
committeranthony <anthony@git.imagemagick.org>
Fri, 6 Apr 2012 02:31:40 +0000 (02:31 +0000)
MagickWand/magick-cli.c

index 33ad1c7ad9305131d204f0b6c0988855a54aa7c0..0fcf8767fdee082c5fa82b5b5992df026e091aa4 100644 (file)
@@ -60,7 +60,7 @@
       3 - option type details
       9 - output options/artifacts/propertys
 */
-#define MagickCommandDebug 0
+#define MagickCommandDebug 3
 
 #define ThrowFileException(exception,severity,tag,context) \
 { \
@@ -290,7 +290,7 @@ WandExport void ProcessScriptOptions(MagickCLI *cli_wand,int argc,char **argv,
       /* fall through - do the depreciated option */
     }
     if (((option_type & ImageRequiredFlags) != 0 ) &&
-        ( cli_wand->wand.images != (Image *)NULL ) ) {
+        ( cli_wand->wand.images == (Image *)NULL ) ) {
       CLIWandException(OptionError,"NoImagesFound",option);
       goto next_token;
     }