From: Cristy Date: Wed, 19 Apr 2017 00:51:00 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-5~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a98e9dfcc3f83d0ae60383fad6fc802f3835ef81;p=imagemagick ... --- diff --git a/coders/mvg.c b/coders/mvg.c index 499e03573..6479e830d 100644 --- a/coders/mvg.c +++ b/coders/mvg.c @@ -184,9 +184,9 @@ static Image *ReadMVGImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(OptionError,"MustSpecifyImageSize"); draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/ - DefaultResolution; + 96.0; draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/ - DefaultResolution; + 96.0; image->columns=(size_t) (draw_info->affine.sx*image->columns); image->rows=(size_t) (draw_info->affine.sy*image->rows); status=SetImageExtent(image,image->columns,image->rows,exception);