Revision: 13617
http://sourceforge.net/p/skim-app/code/13617
Author: hofman
Date: 2023-08-30 17:35:06 +0000 (Wed, 30 Aug 2023)
Log Message:
-----------
only commit text note edit for undo group break point when adding note
explicitly
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2023-08-30 16:59:24 UTC (rev 13616)
+++ trunk/SKPDFView.m 2023-08-30 17:35:06 UTC (rev 13617)
@@ -2652,6 +2652,8 @@
}
if ([newAnnotations count] > 0) {
+ [self commitEditing];
+
for (NSArray *annotationAndPage in newAnnotations) {
newAnnotation = [annotationAndPage firstObject];
page = [annotationAndPage lastObject];
@@ -2668,6 +2670,8 @@
return YES;
} else if (newAnnotation) {
+ [self commitEditing];
+
if (annotationType != SKLineNote && annotationType != SKInkNote &&
[text length] > 0)
[newAnnotation setString:text];
[newAnnotation registerUserName];
@@ -3050,8 +3054,6 @@
}
- (void)beginNewUndoGroupIfNeeded {
- if (editor)
- [self commitEditing];
if (pdfvFlags.wantsNewUndoGroup) {
NSUndoManager *undoManger = [self undoManager];
if ([undoManger groupingLevel] > 0) {
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