diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-05-09 13:13:31 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-05-09 13:13:31 -0700 |
commit | b3d4a5cbf82913e9d6f350f5e623bbcf185a938a (patch) | |
tree | 7bd20197fc29cc0f173e8f3c3f85bf9eb163cf5a /platform/osx/src/MGLMapView.mm | |
parent | e4d32b5cbef17fc5dd97d54a84e2cca2dfc002dc (diff) | |
download | qtlocation-mapboxgl-b3d4a5cbf82913e9d6f350f5e623bbcf185a938a.tar.gz |
[ios, osx] Find nearby annotation when not persisting query
Fixed an issue that made the osxapp context menu only apply to the right-clicked pin after first selecting the pin. This also happened to be a latent bug in the iOS implementation.
Diffstat (limited to 'platform/osx/src/MGLMapView.mm')
-rw-r--r-- | platform/osx/src/MGLMapView.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index d1356c6b49..382d9f8bad 100644 --- a/platform/osx/src/MGLMapView.mm +++ b/platform/osx/src/MGLMapView.mm @@ -1895,8 +1895,8 @@ public: } // Choose the first nearby annotation. - if (_annotationsNearbyLastClick.size()) { - hitAnnotationTag = _annotationsNearbyLastClick.front(); + if (nearbyAnnotations.size()) { + hitAnnotationTag = nearbyAnnotations.front(); } } } |