Revision: 4382
http://skim-app.svn.sourceforge.net/skim-app/?rev=4382&view=rev
Author: hofman
Date: 2008-08-11 23:56:29 +0000 (Mon, 11 Aug 2008)
Log Message:
-----------
standardize synctex file name
Modified Paths:
--------------
trunk/SKPDFSynchronizer.m
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2008-08-11 21:59:31 UTC (rev 4381)
+++ trunk/SKPDFSynchronizer.m 2008-08-11 23:56:29 UTC (rev 4382)
@@ -570,15 +570,15 @@
if (scanner)
synctex_scanner_free(scanner);
if (scanner = synctex_scanner_new_with_output_file([theFileName
fileSystemRepresentation])) {
- NSString *theSyncFilename =
SKPathFromFileSystemRepresentation(synctex_scanner_get_synctex(scanner));
- if ([theSyncFilename isAbsolutePath] == NO)
- theSyncFilename = [[theFileName stringByDeletingLastPathComponent]
stringByAppendingPathComponent:theSyncFilename];
- [self setSyncFileName:theSyncFilename];
+ NSString *theSyncFileName =
SKPathFromFileSystemRepresentation(synctex_scanner_get_synctex(scanner));
+ if ([theSyncFileName isAbsolutePath] == NO)
+ theSyncFileName = [[theFileName stringByDeletingLastPathComponent]
stringByAppendingPathComponent:theSyncFileName];
+ [self setSyncFileName:[theSyncFileName stringByStandardizingPath]];
if (filenames)
[filenames removeAllObjects];
else
filenames = (NSMutableDictionary
*)CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
&kSKCaseInsensitiveStringDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
- NSString *basePath = [theSyncFilename
stringByDeletingLastPathComponent];
+ NSString *basePath = [theSyncFileName
stringByDeletingLastPathComponent];
NSString *file, *filename;
synctex_node_t node = synctex_scanner_input(scanner);
do {
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