summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 12:22:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:19 +0300
commit6438e784344924eb9ace561ec7fcc2b723dcb0dd (patch)
tree98f117f99807591f13ff371c942b23c2e1e49f29 /src/gui/windows/equipmentwindow.cpp
parent8319916c8521b2611d8b877167c3fb612c22b37d (diff)
downloadplus-6438e784344924eb9ace561ec7fcc2b723dcb0dd.tar.gz
plus-6438e784344924eb9ace561ec7fcc2b723dcb0dd.tar.bz2
plus-6438e784344924eb9ace561ec7fcc2b723dcb0dd.tar.xz
plus-6438e784344924eb9ace561ec7fcc2b723dcb0dd.zip
move virtual member calls from equipmentwindow constuctor into postInit.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index 1fe0387e4..43391e611 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -113,7 +113,10 @@ EquipmentWindow::EquipmentWindow(Equipment *const equipment,
recalcSize();
loadWindowState();
+}
+void EquipmentWindow::postInit()
+{
const gcn::Rectangle &area = getChildrenArea();
mUnequip->setPosition(area.width - mUnequip->getWidth() - mButtonPadding,
area.height - mUnequip->getHeight() - mButtonPadding);