r19905 by jghali - #10870: when deleting a linked text frame the content is not refreshed
scribus-commit
scribus-commit at lists.scribus.net
Thu Mar 5 23:20:56 UTC 2015
Author: jghali
Date: Thu Mar 5 23:20:56 2015
New Revision: 19905
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19905
Log:
#10870: when deleting a linked text frame the content is not refreshed
Modified:
trunk/Scribus/scribus/pageitem.cpp
Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19905&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Thu Mar 5 23:20:56 2015
@@ -1420,15 +1420,20 @@
return;
itemText = StoryText(m_Doc);
+
+ int afterChar = 0;
if (before)
+ {
before->NextBox = after;
+ afterChar = qMin((int) before->MaxChars, before->itemText.length());
+ }
if (after)
{
after->BackBox = before;
while (after)
{
after->invalid = true;
- after->firstChar = 0;
+ after->firstChar = afterChar;
after = after->NextBox;
}
}
More information about the scribus-commit
mailing list