Revision: 6672
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6672&view=rev
Author:   hofman
Date:     2010-08-06 09:58:38 +0000 (Fri, 06 Aug 2010)

Log Message:
-----------
shouldn't return

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2010-08-06 09:50:00 UTC (rev 6671)
+++ trunk/SKMainWindowController.m      2010-08-06 09:58:38 UTC (rev 6672)
@@ -651,10 +651,8 @@
 }
 
 - (void)openOutline:(PDFOutline *)anOutline forOpenState:(NSDictionary *)info {
-    if (anOutline == nil)
-        return nil;
     BOOL isOpen = info ? [[info valueForKey:@"isOpen"] boolValue] : [anOutline 
isOpen];
-    if (isOpen) {
+    if (isOpen && outline) {
         NSUInteger i, iMax = [anOutline numberOfChildren];
         NSMutableArray *children = [[NSMutableArray alloc] init];
         for (i = 0; i < iMax; i++)


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 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to