]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_layout.cpp
InsetMath: normalize the line endings of 2 files
[lyx.git] / src / tests / check_layout.cpp
index b4ecad9a0cbea5e987e272a7d9063997ad7bc8d7..318ae4863f9837503ca236391156c52db43c76fa 100644 (file)
@@ -47,8 +47,8 @@ using namespace std;
 bool test_Layout(string const & input, string const & output)
 {
        FileName const ifn(makeAbsPath(input));
-       LayoutFileList l;
-       LayoutFileIndex i = l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName());
+       LayoutFileList & l = LayoutFileList::get();
+       LayoutFileIndex i = onlyFileName(l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName()));
        if (i.empty()) {
                cerr << "Could not read layout file " << input << ".layout.\n";
                return false;