Commit 31a24ea2 authored by Tebjan Halm's avatar Tebjan Halm
Browse files

Merge pull request #45 from user37337/master

Fixed a bug that results in a wrong path position if a path contains a relative position after a close path segment (z)
parents 68425a1c a7a19fe6
......@@ -220,6 +220,10 @@ namespace Svg
{
var lastSegment = segments.Last;
// if the last element is a SvgClosePathSegment the position of the previous element should be used because the position of SvgClosePathSegment is 0,0
if (lastSegment is SvgClosePathSegment)
lastSegment = segments[segments.Count - 2];
if (isRelativeX)
{
point.X += lastSegment.End.X;
......
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