r23197 by jghali - #15818: gradient transparency on a group make the group disappear in the pdf

scribus-commit scribus-commit at lists.scribus.net
Thu Sep 12 02:02:31 UTC 2019


Author: jghali
Date: Thu Sep 12 02:02:31 2019
New Revision: 23197

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23197
Log:
#15818: gradient transparency on a group make the group disappear in the 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=23197&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Thu Sep 12 02:02:31 2019
@@ -6185,7 +6185,7 @@
 
 QByteArray PDFLibCore::PDF_TransparenzFill(PageItem *currItem)
 {
-	QByteArray ShName = ResNam+Pdf::toPdf(ResCount);
+	QByteArray ShName = ResNam + Pdf::toPdf(ResCount);
 	ResCount++;
 	QByteArray tmp;
 	QByteArray GXName;
@@ -6221,7 +6221,7 @@
 		QTransform mpa;
 		if (currItem->isGroup())
 		{
-			mpa.translate(currItem->xPos() - ActPageP->xOffset(), currItem->height());
+			mpa.translate(0, currItem->height());
 			mpa.rotate(-currItem->rotation());
 		}
 		else if (currItem->itemType() == PageItem::Symbol)
@@ -6371,7 +6371,7 @@
 		if (currItem->isGroup())
 		{
 			QTransform mpa;
-			mpa.translate(currItem->xPos() - ActPageP->xOffset(), currItem->height());
+			mpa.translate(0, currItem->height());
 			mpa.rotate(-currItem->rotation());
 			stre += FToStr(mpa.m11())+" "+FToStr(mpa.m12())+" "+FToStr(mpa.m21())+" "+FToStr(mpa.m22())+" "+FToStr(mpa.dx())+" "+FToStr(mpa.dy())+" cm\n";
 		}
@@ -6438,11 +6438,10 @@
 		PutDoc("\n");
 		
 		QByteArray stre = "q\n";
-		if ((currItem->isGroup()) || (currItem->itemType() == PageItem::Symbol))
+		if (currItem->isGroup() || (currItem->itemType() == PageItem::Symbol))
 		{
 			QTransform mpa;
 			mpa.translate(0, currItem->height() * scaleY);
-			mpa.rotate(-currItem->rotation());
 			mpa.scale(scaleX, scaleY);
 			stre += FToStr(mpa.m11())+" "+FToStr(mpa.m12())+" "+FToStr(mpa.m21())+" "+FToStr(mpa.m22())+" "+FToStr(mpa.dx())+" "+FToStr(mpa.dy())+" cm\n";
 		}




More information about the scribus-commit mailing list