summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp
index 9164cfa3..e7ff1449 100644
--- a/src/gui/ok_dialog.cpp
+++ b/src/gui/ok_dialog.cpp
@@ -50,7 +50,7 @@ void OkDialog::init(const std::string &msg, gcn::ActionListener *listener)
w = okButton->getWidth() + 10;
}
- setSize(w, h);
+ setContentSize(w, h);
userLabel->setPosition(10, 10);
okButton->setPosition(
(w - okButton->getWidth()) / 2,