]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_layout.cpp
Don't update paths of non-existing files
[lyx.git] / src / tests / check_layout.cpp
index b4ecad9a0cbea5e987e272a7d9063997ad7bc8d7..af2a9c282605987427e1f35ced8f83f577430bb0 100644 (file)
@@ -47,7 +47,7 @@ using namespace std;
 bool test_Layout(string const & input, string const & output)
 {
        FileName const ifn(makeAbsPath(input));
-       LayoutFileList l;
+    LayoutFileList & l = LayoutFileList::get();
        LayoutFileIndex i = l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName());
        if (i.empty()) {
                cerr << "Could not read layout file " << input << ".layout.\n";