clean up
authorMarcus Eggenberger <egs@quassel-irc.org>
Mon, 22 Sep 2008 16:58:24 +0000 (18:58 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Mon, 22 Sep 2008 16:58:24 +0000 (18:58 +0200)
src/qtui/chatitem.cpp
src/qtui/chatitem.h

index 261182f..13cae26 100644 (file)
@@ -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;
index 8b677c3..c5bb533 100644 (file)
@@ -222,9 +222,6 @@ private:
   qint16 wordidx;
   qint16 lineCount;
   qreal choppedTrailing;
-//   qint16 lastwrapcol;
-//   qreal lastwrappos;
-//   qreal width;
 };
 
 /*************************************************************************************************/