]> git.lyx.org Git - lyx.git/blobdiff - src/ConverterCache.C
* src/text3.C (doDispatch):
[lyx.git] / src / ConverterCache.C
index 9fca48e21dfaab311a8f6146ffab3bd07e548fbf..b5e0c12d8cdc2323f81333bebac75b53e2292847 100644 (file)
@@ -115,7 +115,7 @@ void ConverterCache::Impl::readIndex()
                CacheItem item(orig_from_name, to_format, timestamp, checksum);
 
                // Don't cache files that do not exist anymore
-               if (!fs::exists(orig_from)) {
+               if (!fs::exists(orig_from_name.toFilesystemEncoding())) {
                        lyxerr[Debug::FILES] << "Not caching file `"
                                << orig_from << "' (does not exist anymore)."
                                << std::endl;