Revision: 15229
http://sourceforge.net/p/skim-app/code/15229
Author: hofman
Date: 2025-05-18 16:19:53 +0000 (Sun, 18 May 2025)
Log Message:
-----------
combine conditions
Modified Paths:
--------------
trunk/SKPresentationView.m
Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m 2025-05-18 16:17:27 UTC (rev 15228)
+++ trunk/SKPresentationView.m 2025-05-18 16:19:53 UTC (rev 15229)
@@ -541,16 +541,14 @@
dispatch_async(dispatch_get_main_queue(), ^{
- if (predrawnImages) {
- if (imageOrBlockIsBlock((__bridge id)NSMapGet(predrawnImages,
(void *)pageIndex))) {
- NSMapRemove(predrawnImages, (void *)pageIndex);
- if (image) {
- NSUInteger currentIndex = [page pageIndex];
- if (pageIndex > currentIndex)
- NSMapInsert(predrawnImages, (void *)pageIndex,
(__bridge void *)image);
- else if (pageIndex == currentIndex)
- [pageLayer setContents:image];
- }
+ if (predrawnImages && imageOrBlockIsBlock((__bridge
id)NSMapGet(predrawnImages, (void *)pageIndex))) {
+ NSMapRemove(predrawnImages, (void *)pageIndex);
+ if (image) {
+ NSUInteger currentIndex = [page pageIndex];
+ if (pageIndex > currentIndex)
+ NSMapInsert(predrawnImages, (void *)pageIndex,
(__bridge void *)image);
+ else if (pageIndex == currentIndex)
+ [pageLayer setContents:image];
}
}
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