summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-03 00:00:15 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-03 00:00:15 +0200
commit331b726db4d4fcf5770657107b32fee8df90addb (patch)
tree0e3cfccabdc50c9702668b5c7efa6af7af0034c7
parentbd4da29a30152b0b7732a29ad54bc1e7240bfa16 (diff)
downloadqtlocation-mapboxgl-331b726db4d4fcf5770657107b32fee8df90addb.tar.gz
fix comparison order error
-rw-r--r--include/llmr/map/filter_expression.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llmr/map/filter_expression.hpp b/include/llmr/map/filter_expression.hpp
index bf6d414802..50e6ce1d78 100644
--- a/include/llmr/map/filter_expression.hpp
+++ b/include/llmr/map/filter_expression.hpp
@@ -87,17 +87,17 @@ public:
inline bool compare(const Value &other) const {
switch (op) {
case FilterOperator::Equal:
- return util::relaxed_equal(value, other);
+ return util::relaxed_equal(other, value);
case FilterOperator::NotEqual:
- return !util::relaxed_equal(value, other);
+ return !util::relaxed_equal(other, value);
case FilterOperator::Greater:
- return util::relaxed_greater(value, other);
+ return util::relaxed_greater(other, value);
case FilterOperator::GreaterEqual:
- return util::relaxed_greater_equal(value, other);
+ return util::relaxed_greater_equal(other, value);
case FilterOperator::Less:
- return util::relaxed_less(value, other);
+ return util::relaxed_less(other, value);
case FilterOperator::LessEqual:
- return util::relaxed_less_equal(value, other);
+ return util::relaxed_less_equal(other, value);
default:
return false;
}