Revision: 7265
http://skim-app.svn.sourceforge.net/skim-app/?rev=7265&view=rev
Author: hofman
Date: 2011-06-08 11:38:38 +0000 (Wed, 08 Jun 2011)
Log Message:
-----------
fix adding fragment to URL
Modified Paths:
--------------
trunk/SKDownloadController.m
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2011-06-08 11:08:34 UTC (rev 7264)
+++ trunk/SKDownloadController.m 2011-06-08 11:38:38 UTC (rev 7265)
@@ -332,7 +332,7 @@
NSURL *URL = [NSURL fileURLWithPath:[download filePath]];
NSString *fragment = [[download URL] fragment];
if ([fragment length] > 0)
- URL = [NSURL URLWithString:[[URL absoluteString]
stringByAppendingString:fragment]];
+ URL = [NSURL URLWithString:[[URL absoluteString]
stringByAppendingFormat:@"#%@", fragment]];
NSError *error = nil;
id document = [[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfURL:URL display:YES error:&error];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit