Revision: 13436
          http://sourceforge.net/p/skim-app/code/13436
Author:   hofman
Date:     2023-05-11 13:58:51 +0000 (Thu, 11 May 2023)
Log Message:
-----------
shift selected row indexes when dropping on not bookmark root

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

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2023-05-09 16:31:36 UTC (rev 13435)
+++ trunk/SKBookmarkController.m        2023-05-11 13:58:51 UTC (rev 13436)
@@ -972,7 +972,7 @@
             [self insertBookmarks:newBookmarks atIndexes:indexes 
ofBookmark:item animate:YES];
             [ov endUpdates];
             if (item == bookmarkRoot || [outlineView isItemExpanded:item]) {
-                if (item == bookmarkRoot)
+                if (item != bookmarkRoot)
                     [indexes shiftIndexesStartingAtIndex:0 by:[outlineView 
rowForItem:item] + 1];
                 [outlineView selectRowIndexes:indexes byExtendingSelection:NO];
             }

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