Revision: 13921
          http://sourceforge.net/p/skim-app/code/13921
Author:   hofman
Date:     2023-12-18 18:36:54 +0000 (Mon, 18 Dec 2023)
Log Message:
-----------
use local variable earlier

Modified Paths:
--------------
    trunk/SKThumbnailView.m

Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m     2023-12-18 18:34:09 UTC (rev 13920)
+++ trunk/SKThumbnailView.m     2023-12-18 18:36:54 UTC (rev 13921)
@@ -436,7 +436,8 @@
     if ([NSApp willDragMouse]) {
         
         NSUInteger pageIndex = [[self thumbnail] pageIndex];
-        NSIndexSet *selectionIndexes = [[self collectionView] 
selectionIndexes];
+        NSCollectionView *collectionView = [self collectionView];
+        NSIndexSet *selectionIndexes = [collectionView selectionIndexes];
         if ([selectionIndexes count] < 2 || [selectionIndexes 
containsIndex:pageIndex] == NO)
             selectionIndexes = nil;
         
@@ -452,7 +453,6 @@
                     return @[[self draggingImageComponent]];
                 }];
             } else {
-                NSCollectionView *collectionView = [self collectionView];
                 [dragItem setImageComponentsProvider:^{
                     NSMutableArray *components = [NSMutableArray array];
                     __block NSInteger offset = -(NSInteger)[selectionIndexes 
countOfIndexesInRange:NSMakeRange(0, 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

Reply via email to