r14864 by fschmid - Fixed incorrect clip-path for rotated images in the svg exporter.

scribus-commit scribus-commit at lists.scribus.net
Tue Mar 9 22:20:22 CET 2010


Revision: 14864
Author: fschmid
Date: 2010-03-09T21:11:40.243717Z
Commit message: Fixed incorrect clip-path for rotated images in the svg exporter.

Changeset: 
M  /trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp

Diffs:
Index: scribus/plugins/svgexplugin/svgexplugin.cpp
===================================================================
--- scribus/plugins/svgexplugin/svgexplugin.cpp	(revision 14863)
+++ scribus/plugins/svgexplugin/svgexplugin.cpp	(revision 14864)
@@ -539,8 +539,9 @@
 			cl.setAttribute("d", SetClipPath(&Item->PoLine, true));
 		ob2.appendChild(cl);
 		globalDefs.appendChild(ob2);
+		QDomElement ob6 = docu.createElement("g");
+		ob6.setAttribute("clip-path", "url(#Clip"+IToStr(ClipCount)+")");
 		QDomElement ob3 = docu.createElement("image");
-		ob3.setAttribute("clip-path", "url(#Clip"+IToStr(ClipCount)+")");
 		ScImage img;
 		CMSettings cms(m_Doc, Item->IProfile, Item->IRender);
 		cms.setUseEmbeddedProfile(Item->UseEmbedded);
@@ -585,7 +586,8 @@
 		mpa.rotate(Item->imageRotation());
 		ob3.setAttribute("transform", MatrixToStr(mpa));
 		ClipCount++;
-		ob.appendChild(ob3);
+		ob6.appendChild(ob3);
+		ob.appendChild(ob6);
 	}
 	if (Item->NamedLStyle.isEmpty())
 	{




More information about the scribus-commit mailing list