r20997 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 13 00:02:37 UTC 2016


Author: jghali
Date: Sat Feb 13 00:02:37 2016
New Revision: 20997

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20997
Log:
fix case of failure by gs to render exported PDF

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20997&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Sat Feb 13 00:02:37 2016
@@ -6955,9 +6955,26 @@
 		pat = &doc.docPatterns[currItem->pattern()];
 	}
 	else if (kind == 1)
+	{
+		QString strokePattern = currItem->strokePattern();
+		if (strokePattern.isEmpty() || !doc.docPatterns.contains(strokePattern))
+		{
+			if (currItem->lineColor() != CommonStrings::None)
+			{
+				output += putColor(currItem->lineColor(), currItem->lineShade(), true);
+				output += FToStr(fabs(currItem->lineWidth()))+" w\n";
+			}
+			return true;
+		}
 		pat = &doc.docPatterns[currItem->strokePattern()];
+	}
 	else if (kind == 2)
+	{
+		QString patternMask = currItem->patternMask();
+		if (patternMask.isEmpty() || !doc.docPatterns.contains(patternMask))
+			return true;
 		pat = &doc.docPatterns[currItem->patternMask()];
+	}
 	else
 		return false;
 	for (int em = 0; em < pat->items.count(); ++em)




More information about the scribus-commit mailing list