]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
Updates from Bennett and myself.
[lyx.git] / src / importer.C
index b37c9f0cfa89e3db9c5ff4c051f277025e01a982..457024f2a8f7ed4356ac401eb0fedb6964061df8 100644 (file)
@@ -32,6 +32,7 @@ namespace lyx {
 
 using support::bformat;
 using support::changeExtension;
+using support::FileName;
 using support::makeDisplayPath;
 
 using std::find;
@@ -56,8 +57,8 @@ bool Importer::Import(LyXView * lv, string const & filename,
                                string const tofile =
                                        changeExtension(filename,
                                                formats.extension(*it));
-                               if (!converters.convert(0, filename, tofile,
-                                                       filename, format, *it, errorList))
+                               if (!converters.convert(0, FileName(filename), FileName(tofile),
+                                                       FileName(filename), format, *it, errorList))
                                        return false;
                                loader_format = *it;
                                break;