Revision: 2713
http://skim-app.svn.sourceforge.net/skim-app/?rev=2713&view=rev
Author: hofman
Date: 2007-08-23 07:54:57 -0700 (Thu, 23 Aug 2007)
Log Message:
-----------
Return nothing for outlineRowForPageIndex: when there is no outline, as the
outlineView may perhaps be stale when the document is reloading.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-08-23 12:59:11 UTC (rev 2712)
+++ trunk/SKMainWindowController.m 2007-08-23 14:54:57 UTC (rev 2713)
@@ -3662,6 +3662,9 @@
#pragma mark Outline
- (int)outlineRowForPageIndex:(unsigned int)pageIndex {
+ if (pdfOutline == nil)
+ return -1;
+
int i, numRows = [outlineView numberOfRows];
for (i = 0; i < numRows; i++) {
// Get the destination of the given row....
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit