Revision: 15414
          http://sourceforge.net/p/skim-app/code/15414
Author:   hofman
Date:     2025-06-08 15:47:49 +0000 (Sun, 08 Jun 2025)
Log Message:
-----------
cache textString when auto updating string for new markup notes

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

Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m    2025-06-08 15:18:58 UTC (rev 
15413)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m    2025-06-08 15:47:49 UTC (rev 
15414)
@@ -301,8 +301,11 @@
 
 - (void)autoUpdateStringWithPage:(PDFPage *)page {
     NSString *selString = [[self selectionWithPage:page] cleanedString];
-    if ([selString length])
+    if ([selString length]) {
+        // page should be future [self page] and textString will not have been 
called
+        objc_setAssociatedObject(self, &SKTextStringKey, selString, 
OBJC_ASSOCIATION_RETAIN);
         [self setString:selString];
+    }
 }
 
 - (NSSet *)keysForValuesToObserveForUndo {

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