summaryrefslogtreecommitdiff
path: root/src/gui/windows/confirmdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-07 23:37:06 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-07 23:37:06 +0300
commit661ae1c08d0cab92011e1913e587901c51aee5fe (patch)
tree10c5bc4db6e767a5232d2c1056c1af578848fc74 /src/gui/windows/confirmdialog.cpp
parent2538267ce30c5cfe3bbf23442e7c3a80e647f260 (diff)
downloadmanaplus-661ae1c08d0cab92011e1913e587901c51aee5fe.tar.gz
manaplus-661ae1c08d0cab92011e1913e587901c51aee5fe.tar.bz2
manaplus-661ae1c08d0cab92011e1913e587901c51aee5fe.tar.xz
manaplus-661ae1c08d0cab92011e1913e587901c51aee5fe.zip
Fix confirm dialog width if caption too big.
Diffstat (limited to 'src/gui/windows/confirmdialog.cpp')
-rw-r--r--src/gui/windows/confirmdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/confirmdialog.cpp b/src/gui/windows/confirmdialog.cpp
index e08177ef4..4a0936c0c 100644
--- a/src/gui/windows/confirmdialog.cpp
+++ b/src/gui/windows/confirmdialog.cpp
@@ -70,7 +70,7 @@ void ConfirmDialog::postInit()
const int fontHeight = getFont()->getHeight();
const int height = numRows * fontHeight;
- int width = getFont()->getWidth(getCaption());
+ int width = getFont()->getWidth(getCaption()) + mCaptionOffsetX;
if (width < mTextBox->getMinWidth())
width = mTextBox->getMinWidth();