Revision: 4611
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4611&view=rev
Author:   hofman
Date:     2008-09-11 11:43:52 +0000 (Thu, 11 Sep 2008)

Log Message:
-----------
add a condition for default isOpen of outline item, the root item should always 
be open.

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

Modified: trunk/SKPDFOutline.m
===================================================================
--- trunk/SKPDFOutline.m        2008-09-11 10:19:01 UTC (rev 4610)
+++ trunk/SKPDFOutline.m        2008-09-11 11:43:52 UTC (rev 4611)
@@ -127,7 +127,7 @@
     if ([outline respondsToSelector:_cmd])
         return [outline isOpen];
     else
-        return [parent parent] == nil && [parent numberOfChildren] == 1;
+        return [parent parent] == nil && (parent == nil || [parent 
numberOfChildren] == 1);
 }
 
 @end


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to