endless_loop--
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 14 Jun 2008 00:11:55 +0000 (02:11 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Aug 2008 13:17:09 +0000 (15:17 +0200)
src/qtui/chatitem.cpp

index 568cdcc..6bf77a4 100644 (file)
@@ -79,7 +79,7 @@ int ChatItem::heightForWidth(int width) {
     if(wrapList.at(i+1).toUInt() - offset < width) continue;
     lines++;
     if(i > 0) {
-      if(offset != wrapList.at(i-1).toUInt()) offset = wrapList.at(i-1).toUInt();
+      if(offset < wrapList.at(i-1).toUInt()) offset = wrapList.at(i-1).toUInt();
       else offset += width;
     } else {
       offset += width;