r18637 by fschmid - XPS-Importer: avoid needless large groups and setup pattern stroke correctly.
scribus-commit
scribus-commit at lists.scribus.net
Tue Dec 10 20:43:57 UTC 2013
Author: fschmid
Date: Tue Dec 10 20:43:57 2013
New Revision: 18637
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18637
Log:
XPS-Importer: avoid needless large groups and setup pattern stroke correctly.
Modified:
trunk/Scribus/scribus/plugins/import/xps/importxps.cpp
Modified: trunk/Scribus/scribus/plugins/import/xps/importxps.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18637&path=/trunk/Scribus/scribus/plugins/import/xps/importxps.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/xps/importxps.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/xps/importxps.cpp Tue Dec 10 20:43:57 2013
@@ -1241,6 +1241,7 @@
QLineF line = obState.transform.map(QLineF(0.0, 0.0, 1.0, 0.0));
retObj->setRotation(-line.angle(), true);
}
+ m_Doc->resizeGroupToContents(retObj);
retObj->OwnPage = m_Doc->OnPage(retObj);
m_Doc->GroupOnPage(retObj);
m_Doc->Items->removeLast();
@@ -1776,7 +1777,10 @@
item->setStrokeGradientType(obState.strokeTyp);
}
if (!obState.patternStroke.isEmpty())
+ {
+ item->GrTypeStroke = 8;
item->setStrokePattern(obState.patternStroke);
+ }
if (!obState.DashPattern.isEmpty())
{
item->setDashOffset(obState.DashOffset);
More information about the scribus-commit
mailing list