]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34636
authorCristy <urban-warrior@imagemagick.org>
Sun, 26 Aug 2018 15:44:40 +0000 (11:44 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 26 Aug 2018 15:44:40 +0000 (11:44 -0400)
MagickWand/mogrify.c
MagickWand/operation.c

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