[ios, osx] Corrected missing annotation tag assertion message
ref #3284
This commit is contained in:
committed by
Minh Nguyễn
parent
92bfbcb90d
commit
c3fe62fd3a
@@ -1139,7 +1139,7 @@ std::chrono::steady_clock::duration MGLDurationInSeconds(float duration)
|
||||
if (hitAnnotationTag != _selectedAnnotationTag)
|
||||
{
|
||||
id <MGLAnnotation> annotation = [self annotationWithTag:hitAnnotationTag];
|
||||
NSAssert(annotation, @"Cannot select nonexistent annotation with tag %i", hitAnnotationTag);
|
||||
NSAssert(annotation, @"Cannot select nonexistent annotation with tag %u", hitAnnotationTag);
|
||||
[self selectAnnotation:annotation animated:YES];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1205,7 +1205,7 @@ public:
|
||||
if (hitAnnotationTag != MGLAnnotationTagNotFound) {
|
||||
if (hitAnnotationTag != _selectedAnnotationTag) {
|
||||
id <MGLAnnotation> annotation = [self annotationWithTag:hitAnnotationTag];
|
||||
NSAssert(annotation, @"Cannot select nonexistent annotation with ID %i", hitAnnotationTag);
|
||||
NSAssert(annotation, @"Cannot select nonexistent annotation with tag %u", hitAnnotationTag);
|
||||
[self selectAnnotation:annotation];
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user