]> git.lyx.org Git - lyx.git/blobdiff - src/ConverterCache.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / ConverterCache.C
index 9fca48e21dfaab311a8f6146ffab3bd07e548fbf..6441e651ebfc7b47bfc97a9c632c3bec6c66ed2e 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;
@@ -226,7 +226,7 @@ void ConverterCache::add(FileName const & orig_from, string const & to_format,
        CacheItem * item = pimpl_->find(orig_from, to_format);
 
        time_t const timestamp = fs::last_write_time(orig_from.toFilesystemEncoding());
-       Mover const & mover = movers(to_format);
+       Mover const & mover = getMover(to_format);
        if (item) {
                lyxerr[Debug::FILES] << "ConverterCache::add(" << orig_from << "):\n"
                                        "The file is already in the cache."
@@ -337,7 +337,7 @@ bool ConverterCache::copy(FileName const & orig_from, string const & to_format,
 
        CacheItem * const item = pimpl_->find(orig_from, to_format);
        BOOST_ASSERT(item);
-       Mover const & mover = movers(to_format);
+       Mover const & mover = getMover(to_format);
        return mover.copy(item->cache_name, dest);
 }