Revision: 15986
http://sourceforge.net/p/skim-app/code/15986
Author: hofman
Date: 2026-01-09 16:09:42 +0000 (Fri, 09 Jan 2026)
Log Message:
-----------
remember userInfo dict instad of currentAnnotation
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-01-09 15:51:25 UTC (rev 15985)
+++ trunk/SKPDFView.m 2026-01-09 16:09:42 UTC (rev 15986)
@@ -672,7 +672,7 @@
- (void)setCurrentAnnotation:(PDFAnnotation *)newAnnotation {
if (newAnnotation != currentAnnotation) {
- PDFAnnotation *wasAnnotation = currentAnnotation;
+ NSDictionary *userInfo = currentAnnotation ?
@{SKPDFViewAnnotationKey:currentAnnotation} : nil;
// Will need to redraw old active anotation.
if (currentAnnotation != nil) {
@@ -684,12 +684,11 @@
@synchronized (self) {
currentAnnotation = newAnnotation;
}
- if (newAnnotation) {
+ if (newAnnotation != nil) {
// Force redisplay.
[self updatedAnnotation:currentAnnotation];
}
- NSDictionary *userInfo = wasAnnotation ?
@{SKPDFViewAnnotationKey:wasAnnotation} : nil;
[[NSNotificationCenter defaultCenter]
postNotificationName:SKPDFViewCurrentAnnotationChangedNotification object:self
userInfo:userInfo];
}
}
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