]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 10 Apr 2012 11:53:24 +0000 (11:53 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 10 Apr 2012 11:53:24 +0000 (11:53 +0000)
MagickWand/operation.c

index ebde80ea55ed6a3d8f7c7164c4b75550daa01bd2..9925816ab0cfa01abd6fcc02fcddb769e462d07a 100644 (file)
@@ -3717,8 +3717,12 @@ WandExport void CLIListOperatorImages(MagickCLI *cli_wand,
               MagickFalse,value);
 
           /* Get "clip-to-self" expert setting (false is normal) */
-          clip_to_self=IsStringTrue(GetImageOption(_image_info,
-                "compose:clip-to-self"));       /* if this is true */
+          value=GetImageOption(_image_info,"compose:clip-to-self");
+          if (value == (const char *) NULL)
+            clip_to_self=MagickTrue;
+          else
+            clip_to_self=IsStringTrue(GetImageOption(_image_info,
+              "compose:clip-to-self")); /* if this is true */
           value=GetImageOption(_image_info,"compose:outside-overlay");
           if (value != (const char *) NULL) {   /* or this false */
             /* FUTURE: depreciate warning for "compose:outside-overlay"*/