Fix off-by-one error in computeWrapList()
[quassel.git] / 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());