Revert "Remove the word boundary cache"
[quassel.git] / src / qtui / chatitem.cpp
index 2297983..390e428 100644 (file)
@@ -387,7 +387,11 @@ ContentsChatItemPrivate *ContentsChatItem::privateData() const {
 }
 
 qreal ContentsChatItem::setGeometryByWidth(qreal w) {
-  if(w != width()) {
+  if(w == width()) {
+    //qDebug() << Q_FUNC_INFO << "Geometry change requested with identical width!";
+  }
+  // We use this for reloading layout info as well
+  //if(w != width()) {
     prepareGeometryChange();
     setWidth(w);
     // compute height
@@ -398,7 +402,7 @@ qreal ContentsChatItem::setGeometryByWidth(qreal w) {
     setHeight(lines * fontMetrics()->lineSpacing());
     delete _data;
     _data = 0;
-  }
+  //}
   return height();
 }