From 16a3f318a13448a46a4f59b0e8df6a7f0b73bc17 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 28 Jun 2018 11:18:05 -0700 Subject: [PATCH] [core] A filter expression that errors should be treated as false, not true --- src/mbgl/style/filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/style/filter.cpp b/src/mbgl/style/filter.cpp index 2559eb481..18b8b0a7f 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 typed = expression::fromExpressionValue(*result); return typed ? *typed : false; } else { - return true; + return false; } }