r21925 by craig - #14752: Import gradients when importing pages from another document
scribus-commit
scribus-commit at lists.scribus.net
Mon Apr 17 15:48:49 UTC 2017
Author: craig
Date: Mon Apr 17 15:48:49 2017
New Revision: 21925
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21925
Log:
#14752: Import gradients when importing pages from another document
Modified:
trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21925&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Mon Apr 17 15:48:49 2017
@@ -6027,6 +6027,19 @@
success = readColor(m_Doc->PageColors, attrs);
if (!success) break;
}
+ if (tagName == "Gradient" && attrs.valueAsString("NAME") != CommonStrings::None)
+ {
+ VGradient gra;
+ QString grName = attrs.valueAsString("Name");
+ success = readGradient(m_Doc, gra, reader);
+ if (!success)
+ break;
+ gra.setRepeatMethod((VGradient::VGradientRepeatMethod)(attrs.valueAsInt("Ext", VGradient::pad)));
+ if (!grName.isEmpty())
+ {
+ m_Doc->docGradients.insert(grName, gra);
+ }
+ }
if (tagName == "JAVA")
{
QString name = attrs.valueAsString("NAME");
More information about the scribus-commit
mailing list