Revision: 13942
http://sourceforge.net/p/skim-app/code/13942
Author: hofman
Date: 2023-12-20 15:16:46 +0000 (Wed, 20 Dec 2023)
Log Message:
-----------
make variable more local
Modified Paths:
--------------
trunk/SKThumbnailView.m
Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m 2023-12-20 15:15:05 UTC (rev 13941)
+++ trunk/SKThumbnailView.m 2023-12-20 15:16:46 UTC (rev 13942)
@@ -445,9 +445,7 @@
- (void)mouseDown:(NSEvent *)theEvent {
if ([NSApp willDragMouse]) {
- NSUInteger pageIndex = [[self thumbnail] pageIndex];
NSIndexSet *draggedIndexes = [self copiedIndexes];
-
id<NSPasteboardWriting> item = [[[self thumbnail] page]
filePromiseForPageIndexes:draggedIndexes];
if (item) {
@@ -465,6 +463,7 @@
if (draggedIndexes == nil) {
[dragItems addObject:dragItem];
} else {
+ NSUInteger pageIndex = [[self thumbnail] pageIndex];
[draggedIndexes enumerateIndexesUsingBlock:^(NSUInteger idx,
BOOL *stop){
if (idx == pageIndex) {
[dragItems addObject:dragItem];
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