]> git.lyx.org Git - features.git/commitdiff
Should also use doing_output here. Oversight in previous commit.
authorRichard Heck <rgheck@lyx.org>
Mon, 25 Mar 2013 21:33:18 +0000 (17:33 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 25 Mar 2013 21:36:21 +0000 (17:36 -0400)
src/insets/InsetText.cpp

index 157d2f9cd694ecf07a35677bf060d38c89215963..8c9d3df314c60aef7c046b0ced9fff0ec17bb4ac 100644 (file)
@@ -847,7 +847,7 @@ void InsetText::addToToc(DocIterator const & cdit, bool output_active) const
                if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel) {
                        // insert this into the table of contents
                        docstring tocstring;
-                       int const length = output_active ? INT_MAX : TOC_ENTRY_LENGTH;
+                       int const length = doing_output ? INT_MAX : TOC_ENTRY_LENGTH;
                        if (arginset) {
                                tocstring = par.labelString();
                                if (!tocstring.empty())
@@ -857,7 +857,7 @@ void InsetText::addToToc(DocIterator const & cdit, bool output_active) const
                                par.forToc(tocstring, length);
                        dit.pos() = 0;
                        toc.push_back(TocItem(dit, toclevel - min_toclevel,
-                               tocstring, output_active, tocstring));
+                               tocstring, doing_output, tocstring));
                }
                
                // And now the list of changes.