|
@@ -198,7 +198,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
|
|
|
CPDFAnnotation *newActiveAnnotation = nil;
|
|
|
for (CPDFAnnotation *annotation in annotations) {
|
|
|
- if ([annotation hitTest:point] && [annotation isHidden]) {
|
|
|
+ if ([annotation hitTest:point] && [annotation annotationShouldDisplay]) {
|
|
|
newActiveAnnotation = annotation;
|
|
|
break;
|
|
|
}
|
|
@@ -2616,7 +2616,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
id annotations = [page annotations];
|
|
|
|
|
|
for (CPDFAnnotation *annotation in annotations) {
|
|
|
- if ([annotation hitTest:point] && [annotation isHidden] ) {
|
|
|
+ if ([annotation hitTest:point] && [annotation annotationShouldDisplay] ) {
|
|
|
newActiveAnnotation = annotation;
|
|
|
break;
|
|
|
}
|