]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_layout.cpp
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / tests / check_layout.cpp
index af2a9c282605987427e1f35ced8f83f577430bb0..8e2bb6c90f7e482d518df9b75953e9063ee4d43e 100644 (file)
 #include "../support/Package.h"
 
 #include <cstdlib>
+#include <fstream>
 #include <iostream>
+#include <sstream>
+using namespace std;
 
 
 namespace lyx {
@@ -47,8 +50,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;