+ Fixes a crash relating to resizing annotations.

This commit is contained in:
moritz haarmann
2014-04-28 11:57:03 +02:00
parent a2d850b5c3
commit aaccc5cc1d

View File

@@ -259,6 +259,11 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
for ( int i = 0; i<gestureRecognizer.numberOfTouches; i++){
BITImageAnnotation *newCandidate = (BITImageAnnotation *)[self.view hitTest:[gestureRecognizer locationOfTouch:i inView:self.view] withEvent:nil];
if (![newCandidate isKindOfClass:[BITImageAnnotation class]]){
newCandidate = nil;
}
if (candidate == nil){
candidate = newCandidate;
} else if (candidate != newCandidate){