From 0a53306a7b3e98a3b3ca10cdc59f19f4b0e5bed8 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 14 Sep 2018 16:57:47 +0200 Subject: [PATCH] Reverted patch. --- coders/gradient.c | 15 --------------- coders/xc.c | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/coders/gradient.c b/coders/gradient.c index 04c7792e9..7753bb979 100644 --- a/coders/gradient.c +++ b/coders/gradient.c @@ -124,21 +124,6 @@ static Image *ReadXCImage(const ImageInfo *image_info,ExceptionInfo *exception) assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickCoreSignature); image=AcquireImage(image_info,exception); - if ((image_info->extract != (char *) NULL) && - (image->columns == 0) && (image->rows == 0)) - { - RectangleInfo - geometry; - - int - flags; - - flags=ParseAbsoluteGeometry(image_info->extract,&geometry); - if ((flags & WidthValue) != 0) - image->columns=geometry.width; - if ((flags & HeightValue) != 0) - image->rows=geometry.height; - } if (image->columns == 0) image->columns=1; if (image->rows == 0) diff --git a/coders/xc.c b/coders/xc.c index 441a852cc..21c26920b 100644 --- a/coders/xc.c +++ b/coders/xc.c @@ -120,21 +120,6 @@ static Image *ReadXCImage(const ImageInfo *image_info,ExceptionInfo *exception) assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickCoreSignature); image=AcquireImage(image_info,exception); - if ((image_info->extract != (char *) NULL) && - (image->columns == 0) && (image->rows == 0)) - { - RectangleInfo - geometry; - - int - flags; - - flags=ParseAbsoluteGeometry(image_info->extract,&geometry); - if ((flags & WidthValue) != 0) - image->columns=geometry.width; - if ((flags & HeightValue) != 0) - image->rows=geometry.height; - } if (image->columns == 0) image->columns=1; if (image->rows == 0) -- 2.40.0