diff options
author | Lloyd Sheng <i@lloydsheng.com> | 2018-03-13 14:22:28 +0800 |
---|---|---|
committer | Lloyd Sheng <i@lloydsheng.com> | 2018-03-13 14:22:28 +0800 |
commit | 44e2ad497d489013a6dba8196f7b4ce70c76f891 (patch) | |
tree | 9676b614d1060ba5838bcf680bfcfdb6487fbf31 | |
parent | e19b8e54df2c0c6932042bad98314275dafd93f0 (diff) | |
download | qtlocation-mapboxgl-upstream/lloyd-annotation-select.tar.gz |
Fix an issue where the comment referenced to the wrong variable nameupstream/lloyd-annotation-select
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index e9bada316b..353b2bf2f1 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -2101,7 +2101,7 @@ public: if (nearbyAnnotations.size()) { // The first selection in the cycle should be the one nearest to the // tap. Also the annotation tags need to be stable in order to compare them with - // the remembered tags _annotationsNearbyLastTap. + // the remembered tags _annotationsNearbyLastClick. CLLocationCoordinate2D currentCoordinate = [self convertPoint:point toCoordinateFromView:self]; std::sort(nearbyAnnotations.begin(), nearbyAnnotations.end(), [&](const MGLAnnotationTag tagA, const MGLAnnotationTag tagB) { CLLocationCoordinate2D coordinateA = [[self annotationWithTag:tagA] coordinate]; |