r23597 by jghali - Fix several issues related to export of symbol items to PDF

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 12 20:46:27 UTC 2020


Author: jghali
Date: Sun Apr 12 20:46:27 2020
New Revision: 23597

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23597
Log:
Fix several issues related to export of symbol items 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=23597&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Sun Apr 12 20:46:27 2020
@@ -3207,6 +3207,7 @@
 						trans.translate(0.0, -ite->height());
 				//		trans.translate(pat.items.at(0)->gXpos, -pat.items.at(0)->gYpos);
 						PutPage(TransformToStr(trans) + " cm\n");
+						groupStackPos.push(QPointF(0, ite->height()));
 						for (int em = 0; em < pat.items.count(); ++em)
 						{
 							PageItem* embedded = pat.items.at(em);
@@ -3218,10 +3219,11 @@
 							tmpD += output;
 							tmpD += "Q\n";
 						}
+						groupStackPos.pop();
 						if (Options.supportsTransparency())
 							PutPage(Write_TransparencyGroup(ite->fillTransparency(), ite->fillBlendmode(), tmpD, ite));
 						else
-							PutPage(tmpD);
+							PutPage(Write_FormXObject(tmpD, ite));
 						PutPage("Q\n");
 					}
 					break;
@@ -5154,7 +5156,7 @@
 				if (Options.supportsTransparency())
 					tmp += Write_TransparencyGroup(ite->fillTransparency(), ite->fillBlendmode(), tmpD, ite);
 				else
-					tmp += tmpD;
+					tmp += Write_FormXObject(tmpD, ite);
 				tmp += "Q\n";
 			}
 			break;




More information about the scribus-commit mailing list