]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 11 May 2015 23:20:15 +0000 (23:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 11 May 2015 23:20:15 +0000 (23:20 +0000)
MagickWand/mogrify.c
MagickWand/operation.c

index 61c749b218eb32fbf19f67c95b82950ed0a2f20b..6c02143a562bb3205e0fc0896f5f67edea4b171d 100644 (file)
@@ -7676,8 +7676,8 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
               *combine_image;
 
             (void) SyncImagesSettings(mogrify_info,*images,exception);
-            colorspace=UndefinedColorspace;
-            if (*option == '-')
+            colorspace=(*images)->colorspace;
+            if (*option == '+')
               colorspace=(ColorspaceType) ParseCommandOption(
                 MagickColorspaceOptions,MagickFalse,argv[i+1]);
             combine_image=CombineImages(*images,colorspace,exception);
index 936e87dce382505f114175402c23a57d1e164e48..8b102cb3effee820aabe815575d908dd04b70100 100644 (file)
@@ -3733,7 +3733,7 @@ WandPrivate MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
         }
       if (LocaleCompare("combine",option+1) == 0)
         {
-          parse=(ssize_t) UndefinedColorspace;
+          parse=(ssize_t) _images->colorspace;
           if ( IfPlusOp )
             parse=ParseCommandOption(MagickColorspaceOptions,MagickFalse,arg1);
           if (parse < 0)