From 70b5182461069f60a1c9e3f1cff60902c398abc5 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Mon, 22 Sep 2008 18:58:24 +0200 Subject: [PATCH 1/1] clean up --- src/qtui/chatitem.cpp | 5 +---- src/qtui/chatitem.h | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) 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; }; /*************************************************************************************************/ -- 2.20.1