diff --git a/Source/DataTypes/SvgViewBox.cs b/Source/DataTypes/SvgViewBox.cs index e545e4b4995796ee2cb5d5fce8f760fd5e66c4f3..d3472765cb374161f6d8a32552d6f73028b23d29 100644 --- a/Source/DataTypes/SvgViewBox.cs +++ b/Source/DataTypes/SvgViewBox.cs @@ -140,8 +140,8 @@ namespace Svg var fScaleX = width / this.Width; var fScaleY = height / this.Height; //(this.MinY < 0 ? -1 : 1) * - var fMinX = -this.MinX; - var fMinY = -this.MinY; + var fMinX = -this.MinX * fScaleX; + var fMinY = -this.MinY * fScaleY; if (aspectRatio == null) aspectRatio = new SvgAspectRatio(SvgPreserveAspectRatio.xMidYMid, false); if (aspectRatio.Align != SvgPreserveAspectRatio.none)