From: Marcus Eggenberger Date: Mon, 22 Sep 2008 16:58:24 +0000 (+0200) Subject: clean up X-Git-Tag: 0.3.1~258 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=70b5182461069f60a1c9e3f1cff60902c398abc5 clean up --- 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; diff --git a/src/qtui/chatitem.h b/src/qtui/chatitem.h index 8b677c3a..c5bb5333 100644 --- a/src/qtui/chatitem.h +++ b/src/qtui/chatitem.h @@ -222,9 +222,6 @@ private: qint16 wordidx; qint16 lineCount; qreal choppedTrailing; -// qint16 lastwrapcol; -// qreal lastwrappos; -// qreal width; }; /*************************************************************************************************/