Revision: 6676
http://skim-app.svn.sourceforge.net/skim-app/?rev=6676&view=rev
Author: hofman
Date: 2010-08-07 11:53:51 +0000 (Sat, 07 Aug 2010)
Log Message:
-----------
return nil state for nil outline
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2010-08-07 10:25:26 UTC (rev 6675)
+++ trunk/SKMainWindowController.m 2010-08-07 11:53:51 UTC (rev 6676)
@@ -637,6 +637,8 @@
#define CHILDREN_KEY @"children"
- (NSDictionary *)expansionStateForOutline:(PDFOutline *)anOutline {
+ if (anOutline == nil)
+ return nil;
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setValue:[anOutline label] forKey:LABEL_KEY];
BOOL isExpanded = ([anOutline parent] == nil ||
[leftSideController.tocOutlineView isItemExpanded:anOutline]);
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