diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:46:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:46:48 +0300 |
commit | 6d4da51f0fdcecc2d4398f60dbca43f499fdbe16 (patch) | |
tree | c71c7c6e49ed36a55c6b6a2b1ba70073300634dd /src/gui/widgets/emotepage.cpp | |
parent | 4125ac707288a244a7175b755d74dd963e762f56 (diff) | |
download | manaverse-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.cpp | 4 |
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; } |