Revision: 13642
          http://sourceforge.net/p/skim-app/code/13642
Author:   hofman
Date:     2023-09-06 17:12:52 +0000 (Wed, 06 Sep 2023)
Log Message:
-----------
only call boundsOrder for markup annotations

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-09-05 16:30:00 UTC (rev 13641)
+++ trunk/SKMainWindowController.m      2023-09-06 17:12:52 UTC (rev 13642)
@@ -1041,7 +1041,8 @@
         PDFAnnotation *annotation = [PDFAnnotation 
newSkimNoteWithProperties:dict];
         if (annotation) {
             // this is only to make sure markup annotations generate the 
lineRects, for thread safety
-            [annotation boundsOrder];
+            if ([annotation isMarkup])
+                [annotation boundsOrder];
             NSUInteger pageIndex = [[dict 
objectForKey:SKNPDFAnnotationPageIndexKey] unsignedIntegerValue];
             if (pageIndex == NSNotFound)
                 pageIndex = 0;
@@ -2230,7 +2231,7 @@
         [[self window] makeFirstResponder:[self pdfView]];
 }
 
-- (void)documentDidUnlock:(NSNotification *)notification {
+- (void)documentDidUnlock:(NSNotification *)notification {log_method();
     if (placeholderPdfDocument && [[self pdfDocument] allowsNotes]) {
         PDFDocument *pdfDoc = [self pdfDocument];
         NSMutableIndexSet *pageIndexes = [NSMutableIndexSet indexSet];

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