]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Updates from Bennett and myself.
[lyx.git] / src / BufferView.C
index 2935ba27dc66b00f6686c0bb0a509387ba58cfd2..7ef433cd14b1d5a91c0d30bf9e66f129cc89f7fb 100644 (file)
@@ -209,7 +209,7 @@ bool BufferView::loadLyXFile(string const & filename, bool tolastfiles)
 {
        // Get absolute path of file and add ".lyx"
        // to the filename if necessary
-       string s = fileSearch(string(), filename, "lyx");
+       string s = fileSearch(string(), filename, "lyx").absFilename();
 
        bool const found = !s.empty();
 
@@ -1387,7 +1387,7 @@ void BufferView::menuInsertLyXFile(string const & filenm)
 
        // Get absolute path of file and add ".lyx"
        // to the filename if necessary
-       filename = fileSearch(string(), filename, "lyx");
+       filename = fileSearch(string(), filename, "lyx").absFilename();
 
        docstring const disp_fn = makeDisplayPath(filename);
        // emit message signal.