summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2011-08-12 16:45:42 (GMT)
committerLeandro Melo <leandro.melo@nokia.com>2011-08-15 11:06:33 (GMT)
commit8d3d3381c127f0f4dd9fc507c3069acddbf40535 (patch)
tree5fc45f0ee1557e8aacb1b8399047c7b025616b56 /src
parentd8c341be2905a8c4b15b397161c4813e02f863d7 (diff)
downloadQt-8d3d3381c127f0f4dd9fc507c3069acddbf40535.zip
Qt-8d3d3381c127f0f4dd9fc507c3069acddbf40535.tar.gz
Qt-8d3d3381c127f0f4dd9fc507c3069acddbf40535.tar.bz2
Join user state of removed text blocks
Done-with: mae
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qtextdocument_p.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextdocument_p.cpp b/src/gui/text/qtextdocument_p.cpp
index fde7216..a31e9d3 100644
--- a/src/gui/text/qtextdocument_p.cpp
+++ b/src/gui/text/qtextdocument_p.cpp
@@ -539,6 +539,7 @@ int QTextDocumentPrivate::remove_block(int pos, int *blockFormat, int command, Q
int n = blocks.next(b);
Q_ASSERT((int)blocks.position(n) == pos + 1);
blocks.setSize(b, blocks.size(b) + blocks.size(n) - 1);
+ blocks.fragment(b)->userState = blocks.fragment(n)->userState;
b = n;
}
*blockFormat = blocks.fragment(b)->format;