Fix off-by-one error in computeWrapList()
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 14 Jun 2008 13:05:13 +0000 (15:05 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Aug 2008 13:17:09 +0000 (15:17 +0200)
src/qtui/chatlinemodelitem.cpp

index b657f39..9529412 100644 (file)
@@ -98,7 +98,7 @@ void ChatLineModelItem::computeWrapList() {
     }
     wplist.append(wp);
     wp.first = idx;
-  } while(idx < _contents.plainText.length());
+  } while(finder.isAtBoundary());
 
   // A QVector needs less space than a QList
   _wrapList.resize(wplist.count());