Revision: 15588
          http://sourceforge.net/p/skim-app/code/15588
Author:   hofman
Date:     2025-07-02 15:45:37 +0000 (Wed, 02 Jul 2025)
Log Message:
-----------
first remove currentAnnotation so addUndoGroupIfNeeded is called implicitly

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-07-02 15:36:37 UTC (rev 15587)
+++ trunk/SKPDFView.m   2025-07-02 15:45:37 UTC (rev 15588)
@@ -4224,9 +4224,8 @@
             if (newAnnotation) {
                 [newAnnotation setColor:[currentAnnotation color]];
                 [newAnnotation registerUserName];
-                [self beginNewUndoGroupIfNeeded];
+                [[self document] removeAnnotation:currentAnnotation];
                 [[self document] removeAnnotation:newCurrentAnnotation];
-                [[self document] removeAnnotation:currentAnnotation];
                 [[self document] addAnnotation:newAnnotation toPage:page];
                 [[self undoManager] setActionName:NSLocalizedString(@"Join 
Notes", @"Undo action name")];
                 newCurrentAnnotation = newAnnotation;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to