diff options
Diffstat (limited to 'platform/macos/src/MGLMapView.mm')
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index a4ed32efe4..3c1fe18499 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -2108,9 +2108,8 @@ public: if ([annotation isKindOfClass:[MGLMultiPoint class]]) { - if ([self.delegate respondsToSelector:@selector(mapView:shapeAnnotationIsEnabled:)] && - ![self.delegate mapView:self shapeAnnotationIsEnabled:(MGLMultiPoint *)annotation]) { - return true; + if ([self.delegate respondsToSelector:@selector(mapView:shapeAnnotationIsEnabled:)]) { + return !!(![self.delegate mapView:self shapeAnnotationIsEnabled:(MGLMultiPoint *)annotation]); } else { return false; } |