|
@@ -3004,7 +3004,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
} else {
|
|
|
if(self.activeAnnotations.count == 1 &&
|
|
|
self.activeAnnotation == newActiveAnnotation &&
|
|
|
- ([newActiveAnnotation isKindOfClass:[CPDFTextAnnotation class]] || [newActiveAnnotation isKindOfClass:[CPDFFreeTextAnnotation class]])) {
|
|
|
+ [newActiveAnnotation isKindOfClass:[CPDFFreeTextAnnotation class]]) {
|
|
|
[self editAnnotation:newActiveAnnotation];
|
|
|
break;
|
|
|
}
|
|
@@ -3025,8 +3025,12 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
if (CFormToolMode != self.toolMode) {
|
|
|
[super mouseDown:theEvent];
|
|
|
}
|
|
|
- } else if ([theEvent clickCount] == 2) {
|
|
|
+ } else if ([newActiveAnnotation isKindOfClass:[CPDFTextAnnotation class]]) {
|
|
|
[self editAnnotation:newActiveAnnotation];
|
|
|
+ } else if ([theEvent clickCount] == 2) {
|
|
|
+ if (![newActiveAnnotation isKindOfClass:[CPDFTextAnnotation class]]) {
|
|
|
+ [self editAnnotation:newActiveAnnotation];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
[self setNeedsDisplayAnnotationViewForPage:page];
|