From deedde268a1c2fc0b7d802c20c9fc374e6a05c55 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 May 2013 20:56:07 +0300 Subject: improve beingpopup class. --- src/gui/beingpopup.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/beingpopup.cpp') diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp index 63e3e1bef..67e414c7e 100644 --- a/src/gui/beingpopup.cpp +++ b/src/gui/beingpopup.cpp @@ -185,15 +185,16 @@ void BeingPopup::show(const int x, const int y, Being *const b) if (label4 && label4->getWidth() > minWidth) minWidth = label4->getWidth(); - int height = getFont()->getHeight(); + const int height1 = getFont()->getHeight(); + int height = height1; if (label1) - height += getFont()->getHeight(); + height += height1; if (label2) - height += getFont()->getHeight(); + height += height1; if (label3) - height += getFont()->getHeight(); + height += height1; if (label4) - height += getFont()->getHeight(); + height += height1; setContentSize(minWidth, height); position(x, y); -- cgit v1.2.3-70-g09d2