Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
7eff50ac
Commit
7eff50ac
authored
9 years ago
by
ubbn
Browse files
Options
Download
Email Patches
Plain Diff
Allowed negative coordinates. Fix to #174
parent
9abf0a1a
master
netstandard2
nuget2.4.2
nuget2.4.1
nuget2.4
nuget2.3
nuget2.2.2
nuget2.2.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Document Structure/SvgFragment.cs
+3
-2
Source/Document Structure/SvgFragment.cs
with
3 additions
and
2 deletions
+3
-2
Source/Document Structure/SvgFragment.cs
+
3
-
2
View file @
7eff50ac
...
...
@@ -244,12 +244,13 @@ namespace Svg
else
{
bounds
=
this
.
Bounds
;
//do just one call to the recursive bounds property
this
.
ViewBox
=
new
SvgViewBox
(
bounds
.
X
,
bounds
.
Y
,
bounds
.
Width
,
bounds
.
Height
);
}
}
if
(
isWidthperc
)
{
w
=
(
bounds
.
Width
+
bounds
.
X
)
*
(
Width
.
Value
*
0.01f
);
w
=
(
bounds
.
Width
)
*
(
Width
.
Value
*
0.01f
);
}
else
{
...
...
@@ -257,7 +258,7 @@ namespace Svg
}
if
(
isHeightperc
)
{
h
=
(
bounds
.
Height
+
bounds
.
Y
)
*
(
Height
.
Value
*
0.01f
);
h
=
(
bounds
.
Height
)
*
(
Height
.
Value
*
0.01f
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help