Revision: 13574
http://sourceforge.net/p/skim-app/code/13574
Author: hofman
Date: 2023-08-13 10:21:39 +0000 (Sun, 13 Aug 2023)
Log Message:
-----------
update thumbnails for temporary annotations
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2023-08-13 09:56:33 UTC (rev 13573)
+++ trunk/SKPDFView.m 2023-08-13 10:21:39 UTC (rev 13574)
@@ -740,12 +740,8 @@
if ([[self documentView] isHidden])
[[self documentView] setHidden:NO];
if (temporaryAnnotations) {
- for (PDFAnnotation *annotation in temporaryAnnotations) {
- PDFPage *page = [annotation page];
- [self setNeedsDisplayForAnnotation:annotation];
- [page removeAnnotation:annotation];
- [self annotationsChangedOnPage:page];
- }
+ for (PDFAnnotation *annotation in temporaryAnnotations)
+ [self removeTemporaryAnnotation:annotation];
SKDESTROY(temporaryAnnotations);
SKDESTROY(temporaryUndoManager);
}
@@ -2947,10 +2943,12 @@
[[[self undoManager] prepareWithInvocationTarget:self]
removeTemporaryAnnotation:annotation];
if (temporaryAnnotations == nil)
temporaryAnnotations = [[NSMutableArray alloc] init];
+ [annotation setShouldPrint:NO];
[temporaryAnnotations addObject:annotation];
[page addAnnotation:annotation];
[self setNeedsDisplayForAnnotation:annotation];
[self annotationsChangedOnPage:page];
+ [(SKMainWindowController *)[[self window] windowController]
updateThumbnailAtPageIndex:[page pageIndex]];
}
- (void)removeTemporaryAnnotation:(PDFAnnotation *)annotation {
@@ -2963,6 +2961,7 @@
[page removeAnnotation:wasAnnotation];
[self annotationsChangedOnPage:page];
[wasAnnotation release];
+ [(SKMainWindowController *)[[self window] windowController]
updateThumbnailAtPageIndex:[page pageIndex]];
[page 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