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
19d7f633
Commit
19d7f633
authored
Jun 11, 2015
by
invinctus
Browse files
Fixed viewbox transaltion when altering the aspect ratio
parent
3a2c7983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/DataTypes/SvgViewBox.cs
View file @
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
)
{
...
...
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