[Libreoffice-commits] .: svtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 21 00:08:23 PST 2012
svtools/source/filter/wmf/winmtf.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 33e63a1562cbb63b6db36812d159eac2cfa8fcc7
Author: Thorsten Behrens <tbehrens at suse.com>
Date: Wed Nov 21 01:12:08 2012 +0100
Fix fdo#57353 correct moveTo handling for emf path recording
A moveTo following an existing path really should create a new
subpath, not add to the existing one. It's the equivalent of lifting
the pen.
Change-Id: I196ca9435f8b4225837add964aec7afceb1d6d88
diff --git a/svtools/source/filter/wmf/winmtf.cxx b/svtools/source/filter/wmf/winmtf.cxx
index 2d30b8d..63b0996 100644
--- a/svtools/source/filter/wmf/winmtf.cxx
+++ b/svtools/source/filter/wmf/winmtf.cxx
@@ -1101,7 +1101,13 @@ void WinMtfOutput::MoveTo( const Point& rPoint, sal_Bool bRecordPath )
{
Point aDest( ImplMap( rPoint ) );
if ( bRecordPath )
+ {
+ // fdo#57353 create new subpath for subsequent moves
+ if ( aPathObj.Count() )
+ if ( aPathObj[ aPathObj.Count() - 1 ].GetSize() )
+ aPathObj.Insert( Polygon(), POLYPOLY_APPEND );
aPathObj.AddPoint( aDest );
+ }
maActPos = aDest;
}
More information about the Libreoffice-commits
mailing list