X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=50d74f5e377d5ef509a0d5e8476cfc5f0bb1da04;hp=9519d60c9da7e292bf7cbe203ca69172aeac6f23;hb=49fd75e982cfddf27a59429d25acb03c8b9e6c75;hpb=a6e7f6f0ff462e7e7d6704a11f2e4c2860a6129c diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index 9519d60c..50d74f5e 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -63,7 +63,6 @@ qreal ChatItem::setGeometry(qreal w, qreal h) { prepareGeometryChange(); _boundingRect.setWidth(w); if(h < 0) h = computeHeight(); - //if(h < 0) h = fontMetrics()->lineSpacing(); // only contents can be multi-line _boundingRect.setHeight(h); if(haveLayout()) updateLayout(); return h; @@ -296,7 +295,7 @@ void ContentsChatItem::updateLayout() { int col = finder.nextWrapColumn(); line.setNumColumns(col >= 0 ? col - line.textStart() : layout()->text().length()); line.setPosition(QPointF(0, h)); - h += line.height() + fontMetrics()->leading(); + h += fontMetrics()->lineSpacing(); } layout()->endLayout(); }