diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 17:42:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 18:56:15 +0300 |
commit | d9994f114b1febf4c075d77c0fb3e7a44e510e20 (patch) | |
tree | 00eeae0b23ab620363dedcce448af25325b1381f /src/gui/okdialog.cpp | |
parent | d65f51b41a9d84c501bb25bc3849ffd8446fb2e6 (diff) | |
download | manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.tar.gz manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.tar.bz2 manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.tar.xz manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.zip |
Fix code style and some minor issues.
Diffstat (limited to 'src/gui/okdialog.cpp')
-rw-r--r-- | src/gui/okdialog.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/okdialog.cpp b/src/gui/okdialog.cpp index 1eda1d8c9..0a0c32baa 100644 --- a/src/gui/okdialog.cpp +++ b/src/gui/okdialog.cpp @@ -49,9 +49,6 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg, Button *const okButton = new Button(this, _("OK"), "ok", this); - const int numRows = mTextBox->getNumberOfRows(); - const int fontHeight = getFont()->getHeight(); - const int height = numRows * fontHeight; int width = getFont()->getWidth(title); if (width < mTextBox->getMinWidth()) |