X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=13cae26fb9295e2c79622294264964b17aa13e8d;hp=261182fa60e9eb8c008e3139c497016ad60e5223;hb=70b5182461069f60a1c9e3f1cff60902c398abc5;hpb=ceadbf1e4fe94d231778b9aa4bff8717489b0fd5 diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index 261182fa..13cae26f 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -459,9 +459,6 @@ ContentsChatItem::WrapColumnFinder::WrapColumnFinder(ChatItem *_item) wordidx(0), lineCount(0), choppedTrailing(0) -// lastwrapcol(0), -// lastwrappos(0), -// width(0) { } @@ -508,7 +505,7 @@ qint16 ContentsChatItem::WrapColumnFinder::nextWrapColumn() { } qint16 pivot = (end + start) / 2; - if(wrapList.at(pivot).endX > targetWidth && wordidx != pivot) { + if(wrapList.at(pivot).endX > targetWidth) { end = pivot; } else { start = pivot;