Revision: 13618
          http://sourceforge.net/p/skim-app/code/13618
Author:   hofman
Date:     2023-08-30 22:14:36 +0000 (Wed, 30 Aug 2023)
Log Message:
-----------
make sure text note edit is committed before adding a new note  on mouse down

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-08-30 17:35:06 UTC (rev 13617)
+++ trunk/SKPDFView.m   2023-08-30 22:14:36 UTC (rev 13618)
@@ -4456,6 +4456,7 @@
             // select a new copy of the annotation
             PDFAnnotation *newAnnotation = [PDFAnnotation 
newSkimNoteWithProperties:[newCurrentAnnotation SkimNoteProperties]];
             [newAnnotation registerUserName];
+            [self commitEditing];
             [self addAnnotation:newAnnotation toPage:page];
             [[self undoManager] setActionName:NSLocalizedString(@"Add Note", 
@"Undo action name")];
             newCurrentAnnotation = newAnnotation;
@@ -4487,6 +4488,7 @@
                 [paths release];
             }
             if (newAnnotation) {
+                [self commitEditing];
                 [newAnnotation setColor:[currentAnnotation color]];
                 [newAnnotation registerUserName];
                 [self removeAnnotation:newCurrentAnnotation];

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

Reply via email to