r22895 by jghali - #15601: Last line of text frame appears duplicated at the beginning of next linked text frame

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 14 14:41:42 UTC 2019


Author: jghali
Date: Thu Mar 14 14:41:41 2019
New Revision: 22895

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22895
Log:
#15601: Last line of text frame appears duplicated at the beginning of next linked text frame

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22895&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Thu Mar 14 14:41:41 2019
@@ -14285,7 +14285,14 @@
 	if ((redraw) && (!m_loading))
 	{
 		QRectF newR(currItem->getBoundingRect());
-		regionsChanged()->update(newR.united(oldR));
+		QRectF updateRect = newR.united(oldR);
+		if (currItem->isTextFrame() && currItem->nextInChain())
+		{
+			// If current frame is a text frame, force update of linked frames currently displayed on screen
+			if (currItem->itemText.length() > 0)
+				updateRect = QRectF();
+		}	
+		regionsChanged()->update(updateRect);
 	}
 	if (!fromMP)
 	{




More information about the scribus-commit mailing list