X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftex2lyx.cpp;h=632acc6a7ae459626a4cdd3798024057bb8ca22e;hb=309c75046e71cc78f1968cff8ee10aaae1a62af7;hp=08b8a0cacb879d563127ae3249dd82aaa29eb5bc;hpb=d226c1de126b47815849fc7aed3c82ae42be5c27;p=lyx.git diff --git a/src/tex2lyx/tex2lyx.cpp b/src/tex2lyx/tex2lyx.cpp index 08b8a0cacb..632acc6a7a 100644 --- a/src/tex2lyx/tex2lyx.cpp +++ b/src/tex2lyx/tex2lyx.cpp @@ -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);