]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.cpp
Make --without-include-boost compile (autotools)
[lyx.git] / src / tex2lyx / tex2lyx.cpp
index 08b8a0cacb879d563127ae3249dd82aaa29eb5bc..632acc6a7ae459626a4cdd3798024057bb8ca22e 100644 (file)
@@ -68,6 +68,7 @@ using support::isFileReadable;
 
 namespace fs = boost::filesystem;
 
+LayoutPtr captionlayout;
 
 // Hacks to allow the thing to link in the lyxlayout stuff
 LyXErr lyxerr(std::cerr.rdbuf());
@@ -427,6 +428,7 @@ void tex2lyx(std::istream &is, std::ostream &os)
 
        stringstream ss;
        TextClass textclass = parse_preamble(p, ss, documentclass);
+       captionlayout = LayoutPtr(Layout::forCaption());
 
        active_environments.push_back("document");
        Context context(true, textclass);