mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Should also use doing_output here. Oversight in previous commit.
This commit is contained in:
parent
136560ae34
commit
ca03f8cf7b
@ -847,7 +847,7 @@ void InsetText::addToToc(DocIterator const & cdit, bool output_active) const
|
|||||||
if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel) {
|
if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel) {
|
||||||
// insert this into the table of contents
|
// insert this into the table of contents
|
||||||
docstring tocstring;
|
docstring tocstring;
|
||||||
int const length = output_active ? INT_MAX : TOC_ENTRY_LENGTH;
|
int const length = doing_output ? INT_MAX : TOC_ENTRY_LENGTH;
|
||||||
if (arginset) {
|
if (arginset) {
|
||||||
tocstring = par.labelString();
|
tocstring = par.labelString();
|
||||||
if (!tocstring.empty())
|
if (!tocstring.empty())
|
||||||
@ -857,7 +857,7 @@ void InsetText::addToToc(DocIterator const & cdit, bool output_active) const
|
|||||||
par.forToc(tocstring, length);
|
par.forToc(tocstring, length);
|
||||||
dit.pos() = 0;
|
dit.pos() = 0;
|
||||||
toc.push_back(TocItem(dit, toclevel - min_toclevel,
|
toc.push_back(TocItem(dit, toclevel - min_toclevel,
|
||||||
tocstring, output_active, tocstring));
|
tocstring, doing_output, tocstring));
|
||||||
}
|
}
|
||||||
|
|
||||||
// And now the list of changes.
|
// And now the list of changes.
|
||||||
|
Loading…
Reference in New Issue
Block a user