]> git.lyx.org Git - features.git/commitdiff
Don't abbreviate titles in TOC.
authorRichard Heck <rgheck@lyx.org>
Sun, 24 Mar 2013 13:39:41 +0000 (09:39 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 24 Mar 2013 13:39:41 +0000 (09:39 -0400)
src/insets/InsetText.cpp

index df957660f2c611c3d02d2b57f7862bb9df9e03db..157d2f9cd694ecf07a35677bf060d38c89215963 100644 (file)
@@ -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));