Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
6b70a172
Commit
6b70a172
authored
Jul 21, 2015
by
Tebjan Halm
Browse files
Merge pull request #160 from invinctus/master
Fixed viewbox transaltion when altering the aspect ratio
parents
312eb943
19d7f633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/DataTypes/SvgViewBox.cs
View file @
6b70a172
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment