X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodelitem.cpp;h=84832cdf2a164ad215f0b62e0766dfeb973572de;hp=73b153301829b5ad1dc4c7e19158fe59efc4b442;hb=7a1eca89ead6eb300c593ace9f14c0eb2f9836b8;hpb=5329aa4c1e1ee6523994a675633469b5b4c8215c diff --git a/src/qtui/chatlinemodelitem.cpp b/src/qtui/chatlinemodelitem.cpp index 73b15330..84832cdf 100644 --- a/src/qtui/chatlinemodelitem.cpp +++ b/src/qtui/chatlinemodelitem.cpp @@ -123,7 +123,9 @@ void ChatLineModelItem::computeWrapList() { 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());