From: Richard Heck Date: Wed, 27 Mar 2013 21:17:57 +0000 (-0400) Subject: Re-order things a little bit. X-Git-Tag: 2.1.0beta1~466 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2d34e48869555b6de2fb4192554d8c96a4ea2a8e;p=features.git Re-order things a little bit. --- diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp index 6ed1fa91e9..a5d3d4cff8 100644 --- a/src/insets/InsetTOC.cpp +++ b/src/insets/InsetTOC.cpp @@ -245,10 +245,6 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const return docstring(); } - // with lists of listings, at least, there is no depth - // to worry about. so the code can be simpler. - bool const use_depth = (command == "tableofcontents"); - Layout const & lay = buffer().params().documentClass().htmlTOCLayout(); string const & tocclass = lay.defaultCSSClass(); string const tocattr = "class='tochead " + tocclass + "'"; @@ -271,6 +267,10 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const << title << html::EndTag("div"); + // with lists of listings, at least, there is no depth + // to worry about. so the code can be simpler. + bool const use_depth = (command == "tableofcontents"); + // Output of TOC if (use_depth) makeTOCWithDepth(xs, toc, op);