Revision: 9414
          http://sourceforge.net/p/skim-app/code/9414
Author:   hofman
Date:     2017-04-29 17:46:22 +0000 (Sat, 29 Apr 2017)
Log Message:
-----------
make sure lineRects for markup annotations is generated, so it's available on 
background (drawing) threads

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

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2017-04-29 17:22:09 UTC (rev 9413)
+++ trunk/SKMainDocument.m      2017-04-29 17:46:22 UTC (rev 9414)
@@ -1093,6 +1093,8 @@
                     properties = [SKNPDFAnnotationNote 
textToNoteSkimNoteProperties:properties];
                 PDFAnnotation *newAnnotation = [[PDFAnnotation alloc] 
initSkimNoteWithProperties:properties];
                 if (newAnnotation) {
+                    // this is only to make sure markup annotations generate 
the lineRects, for thread safety
+                    [newAnnotationm boundsOrder];
                     PDFAnnotation *popup = [annotation popup];
                     if (popup)
                         [pdfView removeAnnotation:popup];

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2017-04-29 17:22:09 UTC (rev 9413)
+++ trunk/SKMainWindowController.m      2017-04-29 17:46:22 UTC (rev 9414)
@@ -860,6 +860,8 @@
         NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
         NSUInteger pageIndex = [[dict 
objectForKey:SKNPDFAnnotationPageIndexKey] unsignedIntegerValue];
         if ((annotation = [[PDFAnnotation alloc] 
initSkimNoteWithProperties:dict])) {
+            // this is only to make sure markup annotations generate the 
lineRects, for thread safety
+            [annotation boundsOrder];
             if (pageIndex == NSNotFound)
                 pageIndex = 0;
             else if (pageIndex >= [pdfDoc pageCount])

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to