summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emotepage.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:46:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:46:48 +0300
commit6d4da51f0fdcecc2d4398f60dbca43f499fdbe16 (patch)
treec71c7c6e49ed36a55c6b6a2b1ba70073300634dd /src/gui/widgets/emotepage.cpp
parent4125ac707288a244a7175b755d74dd963e762f56 (diff)
downloadmanaverse-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.tar.gz
manaverse-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.tar.bz2
manaverse-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.tar.xz
manaverse-6d4da51f0fdcecc2d4398f60dbca43f499fdbe16.zip
Fix code style in gui.
Diffstat (limited to 'src/gui/widgets/emotepage.cpp')
-rw-r--r--src/gui/widgets/emotepage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/emotepage.cpp b/src/gui/widgets/emotepage.cpp
index cbdd50cab..68d508a5a 100644
--- a/src/gui/widgets/emotepage.cpp
+++ b/src/gui/widgets/emotepage.cpp
@@ -129,8 +129,8 @@ int EmotePage::getIndexFromGrid(const int x, const int y) const
if (x < 0 || x > width || y < 0 || y > mDimension.height)
return -1;
const int cols = width / emoteWidth;
- const unsigned int index = (y / emoteHeight) * cols + (x / emoteWidth);
- if (index >= mEmotes->size())
+ const int index = (y / emoteHeight) * cols + (x / emoteWidth);
+ if (index >= static_cast<int>(mEmotes->size()))
return -1;
return index;
}