r18358 by jghali - fix missing named gradients when importing svg files
scribus-commit
scribus-commit at lists.scribus.net
Tue Jul 9 21:32:17 UTC 2013
Author: jghali
Date: Tue Jul 9 21:32:17 2013
New Revision: 18358
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18358
Log:
fix missing named gradients when importing svg files
Modified:
trunk/Scribus/scribus/pageitem.cpp
Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18358&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Tue Jul 9 21:32:17 2013
@@ -8209,6 +8209,8 @@
lists.collectColor(fillColor());
else if ((GrType < 8) || (GrType == 10))
{
+ if ((!gradientVal.isEmpty()) && (m_Doc->docGradients.contains(gradientVal)))
+ lists.collectGradient(gradientVal);
QList<VColorStop*> cstops = fill_gradient.colorStops();
for (uint cst = 0; cst < fill_gradient.Stops(); ++cst)
{
@@ -8247,6 +8249,8 @@
lists.collectColor(lineColor());
else if (GrTypeStroke < 8)
{
+ if ((!gradientStrokeVal.isEmpty()) && (m_Doc->docGradients.contains(gradientStrokeVal)))
+ lists.collectGradient(gradientStrokeVal);
QList<VColorStop*> cstops = stroke_gradient.colorStops();
for (uint cst = 0; cst < stroke_gradient.Stops(); ++cst)
{
More information about the scribus-commit
mailing list