|
@@ -285,7 +285,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
|
|
|
- (void)mouseMoved:(NSEvent *)event {
|
|
|
if(self.isPresentationMode) {
|
|
|
- if(self.presentationDrawView.isHidden == NO) {
|
|
|
+ if(self.presentationDrawView && self.presentationDrawView.isHidden == NO) {
|
|
|
NSImage *cursorImage = [[NSImage imageNamed:@"CPDFListViewImageNameCursorsLinkDestination"] copy];
|
|
|
NSCursor * cursor = [[NSCursor alloc] initWithImage:cursorImage hotSpot:NSMakePoint(8.0, 8.0)];
|
|
|
[cursor set];
|
|
@@ -296,7 +296,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
}
|
|
|
return;
|
|
|
} else {
|
|
|
- if(self.presentationDrawView.isHidden == NO) {
|
|
|
+ if(self.presentationDrawView && self.presentationDrawView.isHidden == NO) {
|
|
|
NSImage *cursorImage = [[NSImage imageNamed:@"CPDFListViewImageNameCursorsLinkDestination"] copy];
|
|
|
NSCursor * cursor = [[NSCursor alloc] initWithImage:cursorImage hotSpot:NSMakePoint(8.0, 8.0)];
|
|
|
[cursor set];
|
|
@@ -632,7 +632,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
if(self.isPresentationMode) {
|
|
|
return nil;
|
|
|
} else {
|
|
|
- if(self.presentationDrawView.isHidden == NO) {
|
|
|
+ if(self.presentationDrawView && self.presentationDrawView.isHidden == NO) {
|
|
|
return nil;
|
|
|
}
|
|
|
}
|
|
@@ -1345,6 +1345,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
eventNumber:0
|
|
|
clickCount:1
|
|
|
pressure:0.0];
|
|
|
+
|
|
|
[self setCursorForAreaOfInterest:[self areaOfInterestForMouse:theEvent]];
|
|
|
}
|
|
|
|