summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/beingpopup.cpp11
1 files changed, 6 insertions, 5 deletions
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);