]> git.lyx.org Git - features.git/commitdiff
A comment, and a minor change.
authorRichard Heck <rgheck@comcast.net>
Fri, 1 Jan 2010 02:08:22 +0000 (02:08 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 1 Jan 2010 02:08:22 +0000 (02:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32732 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTOC.cpp
src/insets/InsetTOC.h

index 9a52e26274fe74f7b76314bc40e72ea907487bd0..f7cd3dcdcf8ee58a68bcb801e45c2f93c0cd414e 100644 (file)
@@ -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");
index a6bfe3d5cdb6b0e52cc47b74b0eb928341227dbb..36d7d091c40f6480d9c80c34dbe471368e2a0fc6 100644 (file)
@@ -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:
        ///