Revision: 15220
http://sourceforge.net/p/skim-app/code/15220
Author: hofman
Date: 2025-05-16 21:20:33 +0000 (Fri, 16 May 2025)
Log Message:
-----------
remove NSNull from predrawn images after generation
Modified Paths:
--------------
trunk/SKPresentationView.m
Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m 2025-05-16 21:17:27 UTC (rev 15219)
+++ trunk/SKPresentationView.m 2025-05-16 21:20:33 UTC (rev 15220)
@@ -511,10 +511,13 @@
if (image && predrawnImages && (__bridge
id)NSMapGet(predrawnImages, (void *)pageIndex) == [NSNull null]) {
NSUInteger currentIndex = [page pageIndex];
- if (pageIndex == currentIndex)
- [pageLayer setContents:image];
- else if (pageIndex > currentIndex)
+ if (pageIndex > currentIndex) {
NSMapInsert(predrawnImages, (void *)pageIndex, (__bridge
void *)image);
+ } else {
+ if (pageIndex == currentIndex)
+ [pageLayer setContents:image];
+ [self removePredrawnImageAtIndex:pageIndex];
+ }
}
});
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