diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-01 04:31:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-01 04:31:53 +0300 |
commit | 359c97f1bdb7ce773c3a7cf9671ece7113685c76 (patch) | |
tree | da7cc8e403e11dfda66719ff98f0b48d2c696bc2 /src/gui/widgets/guitable.cpp | |
parent | 36a4928c12024d7dd3771951d8b1f5dbb62702d5 (diff) | |
download | manaverse-359c97f1bdb7ce773c3a7cf9671ece7113685c76.tar.gz manaverse-359c97f1bdb7ce773c3a7cf9671ece7113685c76.tar.bz2 manaverse-359c97f1bdb7ce773c3a7cf9671ece7113685c76.tar.xz manaverse-359c97f1bdb7ce773c3a7cf9671ece7113685c76.zip |
Remove useless check in guitable.cpp
Diffstat (limited to 'src/gui/widgets/guitable.cpp')
-rw-r--r-- | src/gui/widgets/guitable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index cde11423e..7dc8c288a 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -640,7 +640,7 @@ int GuiTable::getColumnForX(const int x) const break; } - if (column < 0 || column >= colnum) + if (column >= colnum) return -1; return column; } |