summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-06-28 11:18:05 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-06-29 15:38:11 -0700
commit16a3f318a13448a46a4f59b0e8df6a7f0b73bc17 (patch)
treec4359152c337a687d14f90da004a069d37ac85d1
parentca5b36ba80312766b694dabb32f8788125bff8ae (diff)
downloadqtlocation-mapboxgl-16a3f318a13448a46a4f59b0e8df6a7f0b73bc17.tar.gz
[core] A filter expression that errors should be treated as false, not true
-rw-r--r--src/mbgl/style/filter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/filter.cpp b/src/mbgl/style/filter.cpp
index 2559eb4816..18b8b0a7f4 100644
--- a/src/mbgl/style/filter.cpp
+++ b/src/mbgl/style/filter.cpp
@@ -13,7 +13,7 @@ bool Filter::operator()(const expression::EvaluationContext &context) const {
const optional<bool> typed = expression::fromExpressionValue<bool>(*result);
return typed ? *typed : false;
} else {
- return true;
+ return false;
}
}