]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_layout.cpp
Add Qt's Svg module to the list of used modules. This is required to allow the use...
[lyx.git] / src / tests / check_layout.cpp
index af2a9c282605987427e1f35ced8f83f577430bb0..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 = LayoutFileList::get();
-       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;