r22110 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jul 15 21:05:05 UTC 2017


Author: jghali
Date: Sat Jul 15 21:05:05 2017
New Revision: 22110

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22110
Log:
#14902: Unlink text frames cut texts incorrectly when more than 2 frames selected

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22110&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp	(original)
+++ trunk/Scribus/scribus/pageitem.cpp	Sat Jul 15 21:05:05 2017
@@ -1468,9 +1468,14 @@
 	PageItem * Prev = BackBox;
 	int length = itemText.length();
 
+	if (this->invalid)
+		layout();
+
 	//unlink first frame in chain
 	if (Prev == NULL)
 	{
+		if (Next->invalid)
+			Next->layout();
 		if (lastInFrame() < length -1)
 		{
 			StoryText content(m_Doc);
@@ -1493,6 +1498,8 @@
 	}
 	else
 	{
+		if (Prev->invalid)
+			Prev->layout();
 		itemText.select(firstInFrame(), length - firstInFrame());
 		StoryText content(m_Doc);
 		content.insert(0, itemText, true);




More information about the scribus-commit mailing list