Revision: 13305
http://sourceforge.net/p/skim-app/code/13305
Author: hofman
Date: 2023-02-25 23:38:56 +0000 (Sat, 25 Feb 2023)
Log Message:
-----------
check for widgets first
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2023-02-25 16:26:16 UTC (rev 13304)
+++ trunk/SKMainWindowController.m 2023-02-25 23:38:56 UTC (rev 13305)
@@ -1084,7 +1084,9 @@
// create new annotations from the dictionary and add them to their page
and to the document
for (NSDictionary *dict in noteDicts) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- if ((annotation = [[PDFAnnotation alloc]
initSkimNoteWithProperties:dict])) {
+ if ([[dict objectForKey:SKNPDFAnnotationTypeKey]
isEqualToString:SKNWidgetString]) {
+ [widgetProperties addObject:dict];
+ } else if ((annotation = [[PDFAnnotation alloc]
initSkimNoteWithProperties:dict])) {
// this is only to make sure markup annotations generate the
lineRects, for thread safety
[annotation boundsOrder];
NSUInteger pageIndex = [[dict
objectForKey:SKNPDFAnnotationPageIndexKey] unsignedIntegerValue];
@@ -1099,8 +1101,6 @@
[annotation autoUpdateString];
[notesToAdd addObject:annotation];
[annotation release];
- } else if ([[dict objectForKey:SKNPDFAnnotationTypeKey]
isEqualToString:SKNWidgetString]) {
- [widgetProperties addObject:dict];
}
[pool release];
}
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