summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-08 01:39:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-09 00:27:32 +0300
commitf4f991e5f0fac6b4924f0807ae8ed779f96d1bd7 (patch)
tree84a17e56b95185fd765cf46828048007c7658f8a /src/gui/widgets/window.cpp
parent161ee42814d3e1828f3f952e172c18fb995924e8 (diff)
downloadmanaplus-f4f991e5f0fac6b4924f0807ae8ed779f96d1bd7.tar.gz
manaplus-f4f991e5f0fac6b4924f0807ae8ed779f96d1bd7.tar.bz2
manaplus-f4f991e5f0fac6b4924f0807ae8ed779f96d1bd7.tar.xz
manaplus-f4f991e5f0fac6b4924f0807ae8ed779f96d1bd7.zip
fix default window title bar height.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index d266d3ce8..de49ac876 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -132,7 +132,7 @@ Window::Window(const std::string &caption, const bool modal,
}
setTitleBarHeight(getOption("titlebarHeight"));
if (!mTitleBarHeight)
- mTitleBarHeight = mCaptionFont->getHeight();
+ mTitleBarHeight = mCaptionFont->getHeight() + mPadding;
mTitleBarHeight += getOption("titlebarHeightRelative");
setPalette(getOption("palette"));