projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5329aa4
)
fixing empty chatlines on mac os (hopefully on windows too). This looks very much...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 9 Aug 2008 16:47:53 +0000
(18:47 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 9 Aug 2008 16:47:53 +0000
(18:47 +0200)
src/qtui/chatlinemodelitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatlinemodelitem.cpp
b/src/qtui/chatlinemodelitem.cpp
index
73b1533
..
84832cd
100644
(file)
--- a/
src/qtui/chatlinemodelitem.cpp
+++ b/
src/qtui/chatlinemodelitem.cpp
@@
-123,7
+123,9
@@
void ChatLineModelItem::computeWrapList() {
word.start = idx;
mode = SearchEnd;
}
word.start = idx;
mode = SearchEnd;
}
- } while(finder.isAtBoundary());
+ // the part " || (finder.position() == _contents.plainText.length())" shouldn't be necessary
+ // but in rare and indeterministic cases Qt states that the end of the text is not a boundary o_O
+ } while(finder.isAtBoundary() || (finder.position() == _contents.plainText.length()));
// A QVector needs less space than a QList
_wrapList.resize(wplist.count());
// A QVector needs less space than a QList
_wrapList.resize(wplist.count());