Revision: 4197
http://skim-app.svn.sourceforge.net/skim-app/?rev=4197&view=rev
Author: hofman
Date: 2008-07-12 11:16:40 -0700 (Sat, 12 Jul 2008)
Log Message:
-----------
Don't bother sending synchronizer callback when nothing was found.
Modified Paths:
--------------
trunk/SKPDFSynchronizer.m
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2008-07-12 11:51:29 UTC (rev 4196)
+++ trunk/SKPDFSynchronizer.m 2008-07-12 18:16:40 UTC (rev 4197)
@@ -627,17 +627,18 @@
- (oneway void)serverFindFileLineForLocation:(NSPoint)point
inRect:(NSRect)rect atPageIndex:(unsigned int)pageIndex {
int foundLine = -1;
NSString *foundFile = nil;
+ BOOL success = NO;
if ([self shouldKeepRunning] && [self parseSyncFileIfNeeded]) {
if ([self shouldKeepRunning]) {
if (isPdfsync)
- [self pdfsyncFindFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
+ success = [self pdfsyncFindFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
else
- [self synctexFindFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
+ success = [self synctexFindFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
}
}
- if ([self shouldKeepRunning])
+ if (success && [self shouldKeepRunning])
[serverOnMainThread serverFoundLine:foundLine inFile:foundFile];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit