Revision: 16038
http://sourceforge.net/p/skim-app/code/16038
Author: hofman
Date: 2026-02-05 23:07:41 +0000 (Thu, 05 Feb 2026)
Log Message:
-----------
really get registered file name from last path component when full filee name
was not registered
Modified Paths:
--------------
trunk/SKPDFSynchronizer.m
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2026-02-05 16:57:31 UTC (rev 16037)
+++ trunk/SKPDFSynchronizer.m 2026-02-05 23:07:41 UTC (rev 16038)
@@ -239,14 +239,15 @@
NSString *fixedFile = [self sourceFileForFileName:file];
NSString *sourceFile = [sourceFileNames objectForKey:fixedFile];
if (sourceFile == nil) {
+ fixedFile = [fixedFile lastPathComponent];
for (NSString *fn in sourceFileNames) {
- if ([[fn lastPathComponent]
caseInsensitiveCompare:[fixedFile lastPathComponent]] == NSOrderedSame) {
- sourceFile = [sourceFileNames objectForKey:fixedFile];
+ if ([[fn lastPathComponent]
caseInsensitiveCompare:fixedFile] == NSOrderedSame) {
+ sourceFile = [sourceFileNames objectForKey:fn];
break;
}
}
if (sourceFile == nil)
- sourceFile = [fixedFile lastPathComponent];
+ sourceFile = fixedFile;
}
success = [parser findPage:&foundPageIndex location:&foundPoint
forLine:line inFile:sourceFile fromPageIndex:0];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit