Revision: 6950
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6950&view=rev
Author:   hofman
Date:     2010-12-09 10:57:05 +0000 (Thu, 09 Dec 2010)

Log Message:
-----------
check for bookmarkRoot instead of nil

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

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2010-12-08 18:26:08 UTC (rev 6949)
+++ trunk/SKBookmarkController.m        2010-12-09 10:57:05 UTC (rev 6950)
@@ -652,7 +652,7 @@
         NSUInteger oldCount = [item countOfChildren];
         [item insertBookmarksForPaths:paths relativeToPath:nil 
atIndex:anIndex];
         NSUInteger newCount = [item countOfChildren];
-        if (newCount > oldCount && (item == nil || [outlineView 
isItemExpanded:item])) {
+        if (newCount > oldCount && (item == bookmarkRoot || [outlineView 
isItemExpanded:item])) {
             NSRange range = NSMakeRange((item == bookmarkRoot ? 0 : 
[outlineView rowForItem:item] + 1) + anIndex, newCount - oldCount);
             [outlineView selectRowIndexes:[NSIndexSet 
indexSetWithIndexesInRange:range] byExtendingSelection:NO];
         }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to