r17042 by fschmid - Fixed Bug 10277: "Path included in tif should be correctly flipped with frames", 2nd follow-up, fixing svg output

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 29 16:27:59 UTC 2011


Author: fschmid
Date: Tue Nov 29 16:27:59 2011
New Revision: 17042

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17042
Log:
Fixed Bug 10277: "Path included in tif should be correctly flipped with frames", 2nd follow-up, fixing svg output

Modified:
    trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp

Modified: trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17042&path=/trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp Tue Nov 29 16:27:59 2011
@@ -623,6 +623,18 @@
 			cl.setAttribute("d", SetClipPath(&Item->imageClip, true));
 		else
 			cl.setAttribute("d", SetClipPath(&Item->PoLine, true));
+		QTransform mpc;
+		if (Item->imageFlippedH())
+		{
+			mpc.translate(Item->width(), 0);
+			mpc.scale(-1, 1);
+		}
+		if (Item->imageFlippedV())
+		{
+			mpc.translate(0, Item->height());
+			mpc.scale(1, -1);
+		}
+		cl.setAttribute("transform", MatrixToStr(mpc));
 		ob2.appendChild(cl);
 		globalDefs.appendChild(ob2);
 		QDomElement ob6 = docu.createElement("g");




More information about the scribus-commit mailing list