From 2d34e48869555b6de2fb4192554d8c96a4ea2a8e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 27 Mar 2013 17:17:57 -0400 Subject: [PATCH] Re-order things a little bit. --- src/insets/InsetTOC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.2