From 4541d74c083b2d11b2dd04ed557e350a6c86293e Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 1 Mar 2019 06:05:23 -0500 Subject: [PATCH] ... --- MagickCore/attribute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 84775e1dd..98b6a3260 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -346,7 +346,11 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, bounds.x=(ssize_t) count.left; bounds.y=(ssize_t) count.top; if ((bounds.width == 0) || (bounds.height == 0)) - SetGeometry(image,&bounds); + { + (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning, + "GeometryDoesNotContainImage","`%s'",image->filename); + SetGeometry(image,&bounds); + } return(bounds); } -- 2.40.0