summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleLayer.mm.ejs
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-12 14:17:20 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-12 16:19:14 -0800
commit85fc75db8ddb5e045d5612fb38925535a8bb1804 (patch)
tree603023d18db4b32a1eca6fa7e41235959d8ae19f /platform/darwin/src/MGLStyleLayer.mm.ejs
parent0a1987f0915c478e0ec0057e9400c7d711980373 (diff)
downloadqtlocation-mapboxgl-85fc75db8ddb5e045d5612fb38925535a8bb1804.tar.gz
[ios, macos] Fixed nilling out predicate
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.mm.ejs')
-rw-r--r--platform/darwin/src/MGLStyleLayer.mm.ejs4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.mm.ejs b/platform/darwin/src/MGLStyleLayer.mm.ejs
index c7e379eaa7..c3b9e92243 100644
--- a/platform/darwin/src/MGLStyleLayer.mm.ejs
+++ b/platform/darwin/src/MGLStyleLayer.mm.ejs
@@ -117,7 +117,7 @@ namespace mbgl {
{
MGLAssertStyleLayerIsValid();
- self.rawLayer->setFilter(predicate.mgl_filter);
+ self.rawLayer->setFilter(predicate ? predicate.mgl_filter : mbgl::style::NullFilter());
}
- (NSPredicate *)predicate
@@ -260,4 +260,4 @@ namespace mbgl {
<% } -%>
@end
-<% } -%> \ No newline at end of file
+<% } -%>