r21593 by jghali - #14394: text shadow effect incorrectly exported to PDF

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 5 22:22:59 UTC 2016


Author: jghali
Date: Mon Dec  5 22:22:59 2016
New Revision: 21593

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21593
Log:
#14394: text shadow effect incorrectly exported to PDF

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21593&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp	(original)
+++ trunk/Scribus/scribus/pageitem.cpp	Mon Dec  5 22:22:59 2016
@@ -2477,15 +2477,16 @@
 	painter->translate(igXpos, igYpos);
 	if (options & NoRotation)
 		painter->rotate(-m_rotation);
+	if (invalid)
+		layout();
 	isEmbedded = true;
-	invalid = true;
 	DrawObj(painter, QRectF());
 	painter->restore();
 	painter->end();
 	delete painter;
 	m_Doc->guidesPrefs().framesShown = savedFlag;
 	isEmbedded = isEmbedded_Old;
-	if (!isEmbedded && (asTextFrame() || asPathText()))
+	if ((isEmbedded_Old != isEmbedded) && (asTextFrame() || asPathText()))
 	{
 		invalid = true;
 		layout();




More information about the scribus-commit mailing list