From 6cf3f9e1c20d4f37b4d3d0dbf599f00eb896803b Mon Sep 17 00:00:00 2001 From: krepa098 Date: Wed, 4 Feb 2015 15:36:26 +0100 Subject: [PATCH] fix bbox calculation --- src/chatlog/chatline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatlog/chatline.cpp b/src/chatlog/chatline.cpp index 4dff5f75e..1059d63e6 100644 --- a/src/chatlog/chatline.cpp +++ b/src/chatlog/chatline.cpp @@ -126,7 +126,7 @@ void ChatLine::updateBBox() bbox.setWidth(width); for(ChatLineContent* c : content) - bbox.setHeight(qMax(c->sceneBoundingRect().height(), bbox.height())); + bbox.setHeight(qMax(c->sceneBoundingRect().top() - bbox.top() + c->sceneBoundingRect().height(), bbox.height())); } QRectF ChatLine::sceneBoundingRect() const