r19906 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:29:48 UTC 2015
Author: jghali
Date: Thu Mar 5 23:29:48 2015
New Revision: 19906
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19906
Log:
#10870: when deleting a linked text frame the content is not refreshed
Modified:
branches/Version14x/Scribus/scribus/pageitem.cpp
Modified: branches/Version14x/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19906&path=/branches/Version14x/Scribus/scribus/pageitem.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pageitem.cpp (original)
+++ branches/Version14x/Scribus/scribus/pageitem.cpp Thu Mar 5 23:29:48 2015
@@ -912,15 +912,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