summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-28 19:00:43 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-28 20:36:29 +0300
commitf0ccfc8b1c210202f0eab10d9bf2381a27f8750a (patch)
tree911ad5dbb48748b549e352979bd4450ff9dc34f1 /src/gui/widgets/window.cpp
parentdc4146a968b71ee098810c02c5ec4957d0d25817 (diff)
downloadplus-f0ccfc8b1c210202f0eab10d9bf2381a27f8750a.tar.gz
plus-f0ccfc8b1c210202f0eab10d9bf2381a27f8750a.tar.bz2
plus-f0ccfc8b1c210202f0eab10d9bf2381a27f8750a.tar.xz
plus-f0ccfc8b1c210202f0eab10d9bf2381a27f8750a.zip
Fix compilation warnings.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 1b008a087..22daa5dc9 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -774,9 +774,8 @@ int Window::getResizeHandles(gcn::MouseEvent &event)
int resizeHandles = 0;
const unsigned y = event.getY();
- if (mGrip && (y > static_cast<int>(mTitleBarHeight)
- || (y < static_cast<int>(getPadding()) && mTitleBarHeight
- > getPadding())))
+ if (mGrip && (y > mTitleBarHeight || (y < getPadding()
+ && mTitleBarHeight > getPadding())))
{
const unsigned x = event.getX();