Revision: 4612
http://skim-app.svn.sourceforge.net/skim-app/?rev=4612&view=rev
Author: hofman
Date: 2008-09-11 16:20:21 +0000 (Thu, 11 Sep 2008)
Log Message:
-----------
add condition to default isOpen, there should be children
Modified Paths:
--------------
trunk/SKPDFOutline.m
Modified: trunk/SKPDFOutline.m
===================================================================
--- trunk/SKPDFOutline.m 2008-09-11 11:43:52 UTC (rev 4611)
+++ trunk/SKPDFOutline.m 2008-09-11 16:20:21 UTC (rev 4612)
@@ -127,7 +127,7 @@
if ([outline respondsToSelector:_cmd])
return [outline isOpen];
else
- return [parent parent] == nil && (parent == nil || [parent
numberOfChildren] == 1);
+ return [parent parent] == nil && (parent == nil || [parent
numberOfChildren] == 1) && [outline numberOfChildren] > 0;
}
@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