]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1014
authorCristy <urban-warrior@imagemagick.org>
Thu, 8 Mar 2018 00:08:21 +0000 (19:08 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 8 Mar 2018 00:08:21 +0000 (19:08 -0500)
MagickWand/mogrify.c
MagickWand/operation.c

index cd0120e5cdd76c067a6e3c36e1c0c6b6d04c3ce3..5365053b47a9fc5ddd7a29b0fa152761025f2b23 100644 (file)
@@ -1650,8 +1650,10 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
             */
             (void) SyncImageSettings(mogrify_info,*image,exception);
             (void) ParsePageGeometry(*image,argv[i+1],&geometry,exception);
-            (void) QueryColorCompliance(argv[i+2],AllCompliance,&target,
-              exception);
+            (void) GetOneVirtualPixelInfo(*image,TileVirtualPixelMethod,
+              geometry.x,geometry.y,&target,exception);
+            (void) QueryColorCompliance(argv[i+2],AllCompliance,
+              &draw_info->fill,exception);
             (void) FloodfillPaintImage(*image,draw_info,&target,geometry.x,
               geometry.y,*option == '-' ? MagickFalse : MagickTrue,exception);
             break;
index 4f7e045d87cdcb75af622f0efc6fcbea095c99d8..a3f94999966a9ab434a24d0f59f8c8fab994b75f 100644 (file)
@@ -2365,7 +2365,10 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
           if (IsGeometry(arg1) == MagickFalse)
             CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
           (void) ParsePageGeometry(_image,arg1,&geometry,_exception);
-          (void) QueryColorCompliance(arg2,AllCompliance,&target,_exception);
+          (void) GetOneVirtualPixelInfo(_image,TileVirtualPixelMethod,
+            geometry.x,geometry.y,&target,exception);
+          (void) QueryColorCompliance(arg2,AllCompliance,&_draw_info->fill,
+            _exception);
           (void) FloodfillPaintImage(_image,_draw_info,&target,geometry.x,
             geometry.y,IsPlusOp,_exception);
           break;