Revision: 6864
http://skim-app.svn.sourceforge.net/skim-app/?rev=6864&view=rev
Author: hofman
Date: 2010-10-01 21:49:12 +0000 (Fri, 01 Oct 2010)
Log Message:
-----------
make sure synctex source files are not NULL
Modified Paths:
--------------
trunk/SKPDFSynchronizerServer.m
Modified: trunk/SKPDFSynchronizerServer.m
===================================================================
--- trunk/SKPDFSynchronizerServer.m 2010-10-01 17:04:54 UTC (rev 6863)
+++ trunk/SKPDFSynchronizerServer.m 2010-10-01 21:49:12 UTC (rev 6864)
@@ -275,8 +275,6 @@
}
- (NSString *)sourceFileForFileSystemRepresentation:(const char *)fileRep
isTeX:(BOOL)isTeX {
- if (fileRep == NULL)
- return nil;
NSString *file = (NSString
*)CFStringCreateWithFileSystemRepresentation(NULL, fileRep);
return [self sourceFileForFileName:[file autorelease] isTeX:isTeX
removeQuotes:NO];
}
@@ -535,11 +533,15 @@
[filenames removeAllObjects];
else
filenames = [[NSMapTable alloc] initForCaseInsensitiveStringKeys];
+ const char *fileRep;
NSString *filename;
synctex_node_t node = synctex_scanner_input(scanner);
do {
- if (filename = [(NSString
*)CFStringCreateWithFileSystemRepresentation(NULL,
synctex_scanner_get_name(scanner, synctex_node_tag(node))) autorelease])
+ if (fileRep = synctex_scanner_get_name(scanner,
synctex_node_tag(node))) {
+ filename = (NSString
*)CFStringCreateWithFileSystemRepresentation(NULL, fileRep);
[filenames setObject:filename forKey:[self
sourceFileForFileName:filename isTeX:YES removeQuotes:NO]];
+ [filename release];
+ }
} while (node = synctex_node_next(node));
isPdfsync = NO;
rv = [self shouldKeepRunning];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit