summaryrefslogtreecommitdiff
path: root/src/touchmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-19 22:46:36 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-19 22:46:36 +0300
commitfc0bffc8aa066409c4538907fe96f389712e24ff (patch)
treeedc33f5dfb0dcac68fdbb6b0d1da5c67eae3c098 /src/touchmanager.cpp
parentf42f520d5f1b974110677efad256e3dc7ec41c29 (diff)
downloadplus-fc0bffc8aa066409c4538907fe96f389712e24ff.tar.gz
plus-fc0bffc8aa066409c4538907fe96f389712e24ff.tar.bz2
plus-fc0bffc8aa066409c4538907fe96f389712e24ff.tar.xz
plus-fc0bffc8aa066409c4538907fe96f389712e24ff.zip
Fix check in touch manager.
Diffstat (limited to 'src/touchmanager.cpp')
-rw-r--r--src/touchmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp
index 2bfe2c572..1662d6f00 100644
--- a/src/touchmanager.cpp
+++ b/src/touchmanager.cpp
@@ -252,7 +252,7 @@ bool TouchManager::processEvent(const MouseInput &mouseInput)
bool TouchManager::isActionActive(const int index) const
{
- if (index < 0 || index > actionsSize)
+ if (index < 0 || index >= actionsSize)
return false;
return mActions[index];
}