From: Richard Heck Date: Sun, 24 Mar 2013 13:39:41 +0000 (-0400) Subject: Don't abbreviate titles in TOC. X-Git-Tag: 2.1.0beta1~493 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1928bb9ed1be3199caa290a797a298f55db5be84;p=features.git Don't abbreviate titles in TOC. --- diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index df957660f2..157d2f9cd6 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -847,13 +847,14 @@ 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; if (arginset) { tocstring = par.labelString(); if (!tocstring.empty()) tocstring += ' '; - arginset->text().forToc(tocstring, TOC_ENTRY_LENGTH); + arginset->text().forToc(tocstring, length); } else - par.forToc(tocstring, TOC_ENTRY_LENGTH); + par.forToc(tocstring, length); dit.pos() = 0; toc.push_back(TocItem(dit, toclevel - min_toclevel, tocstring, output_active, tocstring));