r20091 by jghali - #13060, second part: fix export of gradients embedded in groups on master pages
scribus-commit
scribus-commit at lists.scribus.net
Mon May 18 21:05:16 UTC 2015
Author: jghali
Date: Mon May 18 21:05:16 2015
New Revision: 20091
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20091
Log:
#13060, second part: fix export of gradients embedded in groups on master pages
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20091&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Mon May 18 21:05:16 2015
@@ -2615,12 +2615,12 @@
tmpD += "q\n";
tmpD += "1 0 0 1 "+FToStr(embedded->gXpos)+" "+FToStr(ite->height() - embedded->gYpos)+" cm\n";
QString output;
- if (inPattern > 0)
- patternStackPos.push(QPointF(embedded->gXpos, ite->height() - embedded->gYpos));
+ patternStackPos.push(QPointF(embedded->gXpos, ite->height() - embedded->gYpos));
+ inPattern++; // We are not really exporting a pattern, but that fix gradient export
if (!PDF_ProcessItem(output, embedded, pag, pag->pageNr(), true, true))
return "";
- if (inPattern)
- patternStackPos.pop();
+ inPattern--;
+ patternStackPos.pop();
tmpD += output;
tmpD += "Q\n";
}
More information about the scribus-commit
mailing list