Revision: 13943
http://sourceforge.net/p/skim-app/code/13943
Author: hofman
Date: 2023-12-20 15:55:10 +0000 (Wed, 20 Dec 2023)
Log Message:
-----------
variable for collection view
Modified Paths:
--------------
trunk/SKThumbnailView.m
Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m 2023-12-20 15:16:46 UTC (rev 13942)
+++ trunk/SKThumbnailView.m 2023-12-20 15:55:10 UTC (rev 13943)
@@ -464,6 +464,7 @@
[dragItems addObject:dragItem];
} else {
NSUInteger pageIndex = [[self thumbnail] pageIndex];
+ NSCollectionView *collectionView = [self collectionView];
[draggedIndexes enumerateIndexesUsingBlock:^(NSUInteger idx,
BOOL *stop){
if (idx == pageIndex) {
[dragItems addObject:dragItem];
@@ -472,7 +473,7 @@
[dummyItem setData:[NSData data]
forType:SKPasteboardTypeDummy];
NSDraggingItem *dummyDragItem = [[NSDraggingItem
alloc] initWithPasteboardWriter:dummyItem];
NSRect rect;
- SKThumbnailView *view = (SKThumbnailView *)[[[self
collectionView] itemAtIndexPath:[NSIndexPath indexPathForItem:idx inSection:0]]
view];
+ SKThumbnailView *view = (SKThumbnailView
*)[[collectionView itemAtIndexPath:[NSIndexPath indexPathForItem:idx
inSection:0]] view];
if (view)
rect = [self convertRect:[view draggingFrame]
fromView:view];
else
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