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
a7e5913f
Commit
a7e5913f
authored
Dec 30, 2018
by
heindlalex
Committed by
mrbean-bremen
Dec 30, 2018
Browse files
fix #329
parent
6964ca91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Basic Shapes/SvgRectangle.cs
View file @
a7e5913f
...
...
@@ -186,8 +186,11 @@ namespace Svg
// If the corners aren't to be rounded just create a rectangle
if
(
CornerRadiusX
.
Value
==
0.0f
&&
CornerRadiusY
.
Value
==
0.0f
)
{
var
loc_y
=
Location
.
Y
.
ToDeviceValue
(
renderer
,
UnitRenderingType
.
Vertical
,
this
);
var
loc_x
=
Location
.
X
.
ToDeviceValue
(
renderer
,
UnitRenderingType
.
Horizontal
,
this
);
// Starting location which take consideration of stroke width
SvgPoint
strokedLocation
=
new
SvgPoint
(
L
oc
ation
.
X
-
halfStrokeWidth
,
L
oc
ation
.
Y
-
halfStrokeWidth
);
SvgPoint
strokedLocation
=
new
SvgPoint
(
l
oc
_x
-
halfStrokeWidth
,
l
oc
_y
-
halfStrokeWidth
);
var
width
=
this
.
Width
.
ToDeviceValue
(
renderer
,
UnitRenderingType
.
Horizontal
,
this
)
+
halfStrokeWidth
;
var
height
=
this
.
Height
.
ToDeviceValue
(
renderer
,
UnitRenderingType
.
Vertical
,
this
)
+
halfStrokeWidth
;
...
...
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