]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Fix copy&paste bug.
[lyx.git] / src / Converter.cpp
index f2a463868e381d2badae7bd5aa23ee1304a32261..326115575fba79ae1aa8aa064692af698a2ba316 100644 (file)
@@ -50,7 +50,6 @@ using support::contains;
 using support::dirList;
 using support::FileName;
 using support::getExtension;
-using support::isFileReadable;
 using support::libFileSearch;
 using support::libScriptSearch;
 using support::makeAbsPath;
@@ -323,7 +322,7 @@ bool Converters::convert(Buffer const * buffer,
                                << command << endl;
                        Systemcall one;
                        one.startscript(Systemcall::Wait, command);
-                       if (isFileReadable(to_file)) {
+                       if (to_file.isFileReadable()) {
                                if (conversionflags & try_cache)
                                        ConverterCache::get().add(orig_from,
                                                        to_format, to_file);
@@ -365,9 +364,10 @@ bool Converters::convert(Buffer const * buffer,
             cit != edgepath.end(); ++cit) {
                Converter const & conv = converterlist_[*cit];
                bool dummy = conv.To->dummy() && conv.to != "program";
-               if (!dummy)
+               if (!dummy) {
                        LYXERR(Debug::FILES) << "Converting from  "
                               << conv.from << " to " << conv.to << endl;
+               }
                infile = outfile;
                outfile = FileName(conv.result_dir.empty()
                        ? changeExtension(from_file.absFilename(), conv.To->extension())