r18710 by fschmid - Fixed Bug #11940: Wrong rotation of graphics in XAR file

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 11 09:15:51 UTC 2014


Author: fschmid
Date: Sat Jan 11 09:15:51 2014
New Revision: 18710

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18710
Log:
Fixed Bug #11940: Wrong rotation of graphics in XAR file

Modified:
    trunk/Scribus/scribus/plugins/import/xar/importxar.cpp

Modified: trunk/Scribus/scribus/plugins/import/xar/importxar.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18710&path=/trunk/Scribus/scribus/plugins/import/xar/importxar.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/xar/importxar.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/xar/importxar.cpp Sat Jan 11 09:15:51 2014
@@ -1692,7 +1692,7 @@
 	if (flags & 1)
 		path.addEllipse(QPointF(0,0), w, h);
 	else
-		path = RegularPolygonPath(w * 2, h * 2, numSides, flags & 2, r1, 45, 0);
+		path = RegularPolygonPath(w * 2, h * 2, numSides, flags & 2, r1, -90 + (360.0 / double(numSides)) / 2.0, 0);
 	Coords.fromQPainterPath(path);
 	if (!(flags & 1))
 		Coords.translate(-w, -h);




More information about the scribus-commit mailing list