Commit 6b70a172 authored by Tebjan Halm's avatar Tebjan Halm
Browse files

Merge pull request #160 from invinctus/master

Fixed viewbox transaltion when altering the aspect ratio
parents 312eb943 19d7f633
......@@ -160,6 +160,8 @@ namespace Svg
float fViewMidY = (this.Height / 2) * fScaleY;
float fMidX = width / 2;
float fMidY = height / 2;
fMinX = -this.MinX * fScaleX;
fMinY = -this.MinY * fScaleY;
switch (aspectRatio.Align)
{
......
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