summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index 7a342195256a..863adf54a568 100644
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
@@ -239,6 +239,14 @@ namespace basegfx
// remember closed state of current polygon
bIsClosed = true;
+
+ // update current point - we're back at the start
+ if( aCurrPoly.count() )
+ {
+ const B2DPoint aFirst( aCurrPoly.getB2DPoint(0) );
+ nLastX = aFirst.getX();
+ nLastY = aFirst.getY();
+ }
break;
}
@@ -1033,6 +1041,8 @@ namespace basegfx
if(aPolygon.isClosed())
{
aResult.append(lcl_getCommand('Z', 'z', bUseRelativeCoordinates));
+ // return to first point
+ aCurrentSVGPosition = aPolygon.getB2DPoint(0);
}
}
}