Revision: 15591
http://sourceforge.net/p/skim-app/code/15591
Author: hofman
Date: 2025-07-03 09:20:21 +0000 (Thu, 03 Jul 2025)
Log Message:
-----------
combine adding freehand note
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2025-07-03 09:13:55 UTC (rev 15590)
+++ trunk/SKPDFView.m 2025-07-03 09:20:21 UTC (rev 15591)
@@ -4352,17 +4352,19 @@
[NSEvent setMouseCoalescingEnabled:wasMouseCoalescingEnabled];
if (bezierPath) {
+ PDFAnnotation *annotation = nil;
+ BOOL select = YES;
if (currentAnnotation) {
- PDFAnnotation *annotation = [PDFAnnotation
newSkimNoteWithPaths:[[currentAnnotation pagePaths]
arrayByAddingObject:bezierPath]];
+ annotation = [PDFAnnotation
newSkimNoteWithPaths:[[currentAnnotation pagePaths]
arrayByAddingObject:bezierPath]];
[annotation setColor:[currentAnnotation color]];
[annotation setBorder:[currentAnnotation border]];
[annotation setString:[currentAnnotation string]];
[[self document] removeAnnotation:currentAnnotation];
- [self addAnnotation:annotation toPage:page select:YES];
} else {
- PDFAnnotation *annotation = [PDFAnnotation
newSkimNoteWithPaths:@[bezierPath]];
- [self addAnnotation:annotation toPage:page select:([theEvent
modifierFlags] & (NSEventModifierFlagShift | NSEventModifierFlagCapsLock)) !=
0];
+ annotation = [PDFAnnotation newSkimNoteWithPaths:@[bezierPath]];
+ select = ([theEvent modifierFlags] & (NSEventModifierFlagShift |
NSEventModifierFlagCapsLock)) != 0;
}
+ [self addAnnotation:annotation toPage:page select:select];
} else if (([theEvent modifierFlags] & NSEventModifierFlagCapsLock)) {
[self setCurrentAnnotation:nil];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit