r17344 by jghali - #10607 : Clip path transform not applied when parsing SVG

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 27 18:56:40 UTC 2012


Author: jghali
Date: Mon Feb 27 18:56:40 2012
New Revision: 17344

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17344
Log:
#10607 : Clip path transform not applied when parsing SVG

Modified:
    trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp

Modified: trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17344&path=/trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp Mon Feb 27 18:56:40 2012
@@ -1015,6 +1015,11 @@
 			clip.addQuadPoint(width+x, height+y, width+x, height+y, x, height+y, x, height+y);
 			clip.addQuadPoint(x, height+y, x, height+y, x, y, x, y);
 		}
+		if (b2.hasAttribute("transform"))
+		{
+			QTransform transform = parseTransform(b2.attribute("transform"));
+			clip.map(transform);
+		}
 		if (clip.size() >= 2)
 			m_clipPaths.insert(id, clip);
 	}




More information about the scribus-commit mailing list