r18101 by jghali - fix mismatch between screen display and pdf export when an object use an incorrect pattern

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 20 02:15:07 UTC 2013


Author: jghali
Date: Sun Jan 20 02:15:07 2013
New Revision: 18101

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18101
Log:
fix mismatch between screen display and pdf export when an object use an incorrect pattern

Modified:
    branches/Version14x/Scribus/scribus/pdflib_core.cpp

Modified: branches/Version14x/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18101&path=/branches/Version14x/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pdflib_core.cpp (original)
+++ branches/Version14x/Scribus/scribus/pdflib_core.cpp Sun Jan 20 02:15:07 2013
@@ -5002,6 +5002,17 @@
 	{
 		QStack<PageItem*> groupStack;
 		QString tmp2 = "", tmpOut;
+		QString pattern = currItem->pattern();
+		if (pattern.isEmpty() || !doc.docPatterns.contains(pattern))
+		{
+			if (currItem->fillColor() != CommonStrings::None)
+			{
+				output += putColor(currItem->fillColor(), currItem->fillShade(), true);
+				output += SetClipPath(currItem);
+				output += currItem->fillRule ? "h\nf*\n" : "h\nf\n";
+			}
+			return true;
+		}
 		ScPattern *pat = &doc.docPatterns[currItem->pattern()];
 		for (int em = 0; em < pat->items.count(); ++em)
 		{




More information about the scribus-commit mailing list