Commit a7a19fe6 authored by user37337's avatar user37337
Browse files

Fixed a bug that results in a wrong path position if a path contains a...

Fixed a bug that results in a wrong path position if a path contains a relative position after a close path segment (z)
parent 4cc1d9e7
......@@ -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