summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-03-23 17:46:43 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-03-26 12:15:32 +0200
commita2ee8055e9c136923f0244fe289cac6377933c31 (patch)
tree0898dc3e45ca2063dab45942766e3e16fad86f8f /xmloff
parentb36a42fb831b853120928e05dcf322898a92a731 (diff)
Fix fdo#47406 incorrect relative moves after closePath
I missed the fact that odf export still uses the old exporter in xmloff/source/draw/xexptran.cxx, which was not fixed wrt. the update of current position in basegfx/source/polygon/b2dsvgpolypolygon.cxx
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/xexptran.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx
index 15ef848438fc..603298419319 100644
--- a/xmloff/source/draw/xexptran.cxx
+++ b/xmloff/source/draw/xexptran.cxx
@@ -1606,6 +1606,7 @@ void SdXMLImExSvgDElement::AddPolygon(
// bezier poly, handle curves
bool bDidWriteStart(false);
+ sal_Int32 nStartX(0), nStartY(0);
for(sal_Int32 a(0L); a < nCnt; a++)
{
@@ -2080,6 +2081,8 @@ void SdXMLImExSvgDElement::AddPolygon(
// remember start written
bDidWriteStart = true;
+ nStartX = nX;
+ nStartY = nY;
}
// remember new last position
@@ -2100,6 +2103,13 @@ void SdXMLImExSvgDElement::AddPolygon(
aNewString += rtl::OUString(static_cast<sal_Unicode>('z'));
else
aNewString += rtl::OUString(static_cast<sal_Unicode>('Z'));
+
+ // update current point - we're back at the start
+ if( bDidWriteStart )
+ {
+ mnLastX = nStartX;
+ mnLastY = nStartY;
+ }
}
// append new string