r21399 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Jul 4 22:10:09 UTC 2016


Author: jghali
Date: Mon Jul  4 22:10:08 2016
New Revision: 21399

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21399
Log:
#14203: lines with gradients and opacity are exported incorrectly

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21399&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Mon Jul  4 22:10:08 2016
@@ -8336,7 +8336,11 @@
 		dict.Pattern = Patterns;
 		writer.write(dict);
 
-		QByteArray stre = "q\n"+SetClipPath(currItem)+"h\n";
+		QByteArray stre = "q\n";
+		if (currItem->isLine())
+			stre += "0 0 m\n" + FToStr(currItem->width()) +" 0 l\n";
+		else
+			stre += SetClipPath(currItem) + "h\n";
 		stre += FToStr(fabs(currItem->lineWidth()))+" w\n";
 		if ((forArrow) || (!stroke))
 		{




More information about the scribus-commit mailing list