]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetTOC.cpp
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");