X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fimporter.C;h=b37c9f0cfa89e3db9c5ff4c051f277025e01a982;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=d00b05c4c8295504266ef29c42bad545ce70e9a6;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/importer.C b/src/importer.C index d00b05c4c8..b37c9f0cfa 100644 --- a/src/importer.C +++ b/src/importer.C @@ -53,8 +53,11 @@ bool Importer::Import(LyXView * lv, string const & filename, for (vector::const_iterator it = loaders.begin(); it != loaders.end(); ++it) { if (converters.isReachable(format, *it)) { - if (!converters.convert(0, filename, filename, - format, *it, errorList)) + string const tofile = + changeExtension(filename, + formats.extension(*it)); + if (!converters.convert(0, filename, tofile, + filename, format, *it, errorList)) return false; loader_format = *it; break;