r16350 by fschmid - Readded the QPainterPath::simplyfied() function to avoid unwanted selfintersections of the generated path.

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 12 12:46:17 CET 2011


Author: fschmid
Date: Sat Feb 12 11:46:17 2011
New Revision: 16350

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16350
Log:
Readded the QPainterPath::simplyfied() function to avoid unwanted selfintersections of the generated path.

Modified:
    trunk/Scribus/scribus/plugins/tools/pathstroker/pathstroker.cpp

Modified: trunk/Scribus/scribus/plugins/tools/pathstroker/pathstroker.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16350&path=/trunk/Scribus/scribus/plugins/tools/pathstroker/pathstroker.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/tools/pathstroker/pathstroker.cpp (original)
+++ trunk/Scribus/scribus/plugins/tools/pathstroker/pathstroker.cpp Sat Feb 12 11:46:17 2011
@@ -145,7 +145,7 @@
 				stroke.setDashPattern(m_array);
 			}
 			stroke.setWidth(currItem->lineWidth());
-			QPainterPath result = stroke.createStroke(pp);
+			QPainterPath result = stroke.createStroke(pp).simplified();
 			if (currItem->startArrowIndex() != 0)
 			{
 				FPoint Start = currItem->PoLine.point(0);




More information about the scribus-commit mailing list