r18745 by jghali - fix svg export issue with resized symbol items
scribus-commit
scribus-commit at lists.scribus.net
Sat Jan 18 19:45:49 UTC 2014
Author: jghali
Date: Sat Jan 18 19:45:49 2014
New Revision: 18745
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18745
Log:
fix svg export issue with resized symbol items
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=18745&path=/trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp Sat Jan 18 19:45:49 2014
@@ -713,13 +713,13 @@
QDomElement SVGExPlug::processSymbolItem(PageItem *Item, QString trans)
{
QDomElement ob;
+ ScPattern pat = m_Doc->docPatterns[Item->pattern()];
ob = docu.createElement("use");
ob.setAttribute("x", "0");
ob.setAttribute("y", "0");
- ob.setAttribute("width", FToStr(Item->width()));
- ob.setAttribute("height", FToStr(Item->height()));
+ ob.setAttribute("width", FToStr(pat.width));
+ ob.setAttribute("height", FToStr(pat.height));
ob.setAttribute("xlink:href", "#S"+Item->pattern());
- ScPattern pat = m_Doc->docPatterns[Item->pattern()];
QString tr = trans + QString(" scale(%1, %2)").arg(Item->width() / pat.width).arg(Item->height() / pat.height);
ob.setAttribute("transform", tr);
return ob;
More information about the scribus-commit
mailing list