Commit ed525d27 authored by Tebjan Halm's avatar Tebjan Halm
Browse files

Merge pull request #133 from kataklinger/master

Scaling minx and miny of viewbox
parents e4cb89ac 79cc4f23
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment