r18864 by fschmid - ODG-Importer: fix triple Hatching.

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 2 19:15:49 UTC 2014


Author: fschmid
Date: Sun Mar  2 19:15:49 2014
New Revision: 18864

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18864
Log:
ODG-Importer: fix triple Hatching.

Modified:
    trunk/Scribus/scribus/plugins/import/odg/importodg.cpp

Modified: trunk/Scribus/scribus/plugins/import/odg/importodg.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18864&path=/trunk/Scribus/scribus/plugins/import/odg/importodg.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/odg/importodg.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/odg/importodg.cpp Sun Mar  2 19:15:49 2014
@@ -1192,7 +1192,11 @@
 		mat.scale(sx, sy);
 		retObj->PoLine.map(mat);
 		if (e.hasAttribute("draw:transform"))
+		{
+			FPoint tp2(getMinClipF(&retObj->PoLine));
+			retObj->PoLine.translate(-tp2.x(), -tp2.y());
 			parseTransform(&retObj->PoLine, e.attribute("draw:transform"));
+		}
 		finishItem(retObj, tmpOStyle);
 		m_Doc->Items->removeLast();
 		if (itype == PageItem::PolyLine)
@@ -3637,7 +3641,7 @@
 			if (gStyle.hatchStyle == "triple")
 			{
 				painter->save();
-				painter->rotate(135);
+				painter->rotate(45);
 				dist = 0;
 				while (dist < sqrt((hw * 2) * (hw * 2)) * 3)
 				{




More information about the scribus-commit mailing list