Browse Source

fix bbox calculation

pull/974/head
krepa098 11 years ago
parent
commit
6cf3f9e1c2
  1. 2
      src/chatlog/chatline.cpp

2
src/chatlog/chatline.cpp

@ -126,7 +126,7 @@ void ChatLine::updateBBox()
bbox.setWidth(width); bbox.setWidth(width);
for(ChatLineContent* c : content) 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 QRectF ChatLine::sceneBoundingRect() const

Loading…
Cancel
Save