r20025 by fschmid - Fixed Bug #13026: "Hatch" fill transparency is ignored exporting to PDF

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 26 08:27:09 UTC 2015


Author: fschmid
Date: Sun Apr 26 08:27:09 2015
New Revision: 20025

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20025
Log:
Fixed Bug #13026: "Hatch" fill transparency is ignored exporting to 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=20025&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Sun Apr 26 08:27:09 2015
@@ -6427,7 +6427,10 @@
 	}
 	else
 	{
-		Transpar[ShName] = writeGState("/ca "+FToStr(1.0 - currItem->fillTransparency())+"\n/SMask /None\n/AIS false\n/OPM 1\n/BM /" + blendMode(currItem->fillBlendmode()) + "\n");
+		if (currItem->GrType == 14)
+			Transpar[ShName] = writeGState("/CA "+FToStr(1.0 - currItem->fillTransparency())+"\n/ca "+FToStr(1.0 - currItem->fillTransparency())+"\n/SMask /None\n/AIS false\n/OPM 1\n/BM /" + blendMode(currItem->fillBlendmode()) + "\n");
+		else
+			Transpar[ShName] = writeGState("/ca "+FToStr(1.0 - currItem->fillTransparency())+"\n/SMask /None\n/AIS false\n/OPM 1\n/BM /" + blendMode(currItem->fillBlendmode()) + "\n");
 		tmp = "/"+ShName+" gs\n";
 	}
 	return tmp;




More information about the scribus-commit mailing list