Commit 6eb742891 for imagemagick.org
commit 6eb7428915948c4743cb6ef95cf8925ac2df3605
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Sun May 31 16:13:56 2026 +0200
Revert extra check that was committed by accident.
diff --git a/coders/svg.c b/coders/svg.c
index 3bf9f4477..ede9231d3 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -492,10 +492,10 @@ static Image *RenderRSVGImage(const ImageInfo *image_info,Image *image,
&image->columns,&image->rows);
if ((image->columns != 0) || (image->rows != 0))
{
- image->resolution.x=dimension_info.width > 0 ?
- DefaultSVGDensity*image->columns/dimension_info.width : 0.0;
- image->resolution.y=dimension_info.height > 0 ?
- DefaultSVGDensity*image->rows/dimension_info.height : 0.0;
+ image->resolution.x=DefaultSVGDensity*image->columns/
+ dimension_info.width;
+ image->resolution.y=DefaultSVGDensity*image->rows/
+ dimension_info.height;
if (fabs(image->resolution.x) < MagickEpsilon)
image->resolution.x=image->resolution.y;
else