r19904 by craig - #12797: Apply Jean's patch for fixing frame linking issue due to incorrect character count data

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 5 19:01:22 UTC 2015


Author: craig
Date: Thu Mar  5 19:01:22 2015
New Revision: 19904

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19904
Log:
#12797: Apply Jean's patch for fixing frame linking issue due to incorrect character count data

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19904&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Thu Mar  5 19:01:22 2015
@@ -3078,8 +3078,12 @@
 	if (NextBox != NULL)
 	{
 		PageItem_TextFrame * nextFrame = dynamic_cast<PageItem_TextFrame*>(NextBox);
-		nextFrame->invalid   = true;
-		nextFrame->firstChar = MaxChars;
+		while (nextFrame)
+		{
+			nextFrame->invalid   = true;
+			nextFrame->firstChar = MaxChars;
+			nextFrame = dynamic_cast<PageItem_TextFrame*>(nextFrame->NextBox);
+		}
 	}
 	itemText.blockSignals(false);
 //	qDebug("textframe: len=%d, done relayout", itemText.length());




More information about the scribus-commit mailing list