From 228948534e017c1c6f70cfe6dc753f23914f2705 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 1 Jan 2010 02:08:22 +0000 Subject: [PATCH] A comment, and a minor change. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32732 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTOC.cpp | 4 ++-- src/insets/InsetTOC.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp index 9a52e26274..f7cd3dcdcf 100644 --- a/src/insets/InsetTOC.cpp +++ b/src/insets/InsetTOC.cpp @@ -102,13 +102,13 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const odocstringstream ods; XHTMLStream xs(ods); - if (getCmdName() == "tableofcontents") { + string const & cmdname = getCmdName(); + if (cmdname == "tableofcontents") { Toc const & toc = buffer().tocBackend().toc("tableofcontents"); if (toc.empty()) return docstring(); xs << StartTag("div", "class='toc'"); - xs << StartTag("div", tocattr) << _("Table of Contents") << EndTag("div"); diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index a6bfe3d5cd..36d7d091c4 100644 --- a/src/insets/InsetTOC.h +++ b/src/insets/InsetTOC.h @@ -19,6 +19,9 @@ namespace lyx { /// Used to insert table of contents and similar lists +/// at present, supports only \tableofcontents. Other +/// such commands, such as \listoffigures, are supported +/// by InsetFloatList. class InsetTOC : public InsetCommand { public: /// -- 2.39.2