]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
cosmetic fix
[lyx.git] / src / importer.C
index fc260837f056e6bf9d827b4834074b5020f4ef18..d7c0588861b91977655bc9abc44268cbe74b6791 100644 (file)
@@ -26,6 +26,8 @@
 
 #include <algorithm>
 
+using namespace lyx::support;
+
 using std::vector;
 using std::find;
 
@@ -68,7 +70,7 @@ bool Importer::Import(LyXView * lv, string const & filename,
        if (loader_format == "lyx") {
                lv->view()->loadLyXFile(lyxfile);
        } else {
-               lv->view()->buffer(newFile(lyxfile, string(), true));
+               lv->view()->newFile(lyxfile, string(), true);
                bool as_paragraphs = loader_format == "textparagraph";
                string filename2 = (loader_format == format) ? filename
                        : ChangeExtension(filename,