From caae2cce2dbafe791235f5f3e5dcc64cc2cc093e Mon Sep 17 00:00:00 2001 From: ubbn Date: Wed, 29 Jul 2015 10:51:11 +0200 Subject: [PATCH] Remove unnecessary call to get SVG dimension --- Source/SvgDocument.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/SvgDocument.cs b/Source/SvgDocument.cs index a438c2d..f0dd47b 100644 --- a/Source/SvgDocument.cs +++ b/Source/SvgDocument.cs @@ -473,8 +473,10 @@ namespace Svg //EO, 2014-12-05: Requested to ensure proper zooming (draw the svg in the bitmap size, ==> proper scaling) //EO, 2015-01-09, Added GetDimensions to use its returned size instead of this.Width and this.Height (request of Icarrere). - SizeF size = this.GetDimensions(); - renderer.ScaleTransform(bitmap.Width / size.Width, bitmap.Height / size.Height); + + //BBN, 2015-07-29, it is unnecassary to call again GetDimensions and transform to 1x1 + //SizeF size = this.GetDimensions(); + //renderer.ScaleTransform(bitmap.Width / size.Width, bitmap.Height / size.Height); //EO, 2014-12-05: Requested to ensure proper zooming out (reduce size). Otherwise it clip the image. this.Overflow = SvgOverflow.Auto; -- GitLab