From acff67f259c1e2d9acfe3697b33843af4d3f94d7 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 25 Apr 2010 22:18:46 +0000 Subject: [PATCH] Fix bug #6672 (part 1): Notes, Footnotes, and Marginals are unnecessarily truncated. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34286 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetFoot.cpp | 2 +- src/insets/InsetMarginal.cpp | 2 +- src/insets/InsetNote.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetFoot.cpp b/src/insets/InsetFoot.cpp index f311c1d61c..79167d1ded 100644 --- a/src/insets/InsetFoot.cpp +++ b/src/insets/InsetFoot.cpp @@ -66,7 +66,7 @@ void InsetFoot::addToToc(DocIterator const & cpit) Toc & toc = buffer().tocBackend().toc("footnote"); docstring str; - str = custom_label_ + ": " + getNewLabel(str); + str = custom_label_ + ": " + text().getPar(0).asString(); toc.push_back(TocItem(pit, 0, str)); // Proceed with the rest of the inset. InsetFootlike::addToToc(cpit); diff --git a/src/insets/InsetMarginal.cpp b/src/insets/InsetMarginal.cpp index fe776bed8a..86b93bd4b7 100644 --- a/src/insets/InsetMarginal.cpp +++ b/src/insets/InsetMarginal.cpp @@ -58,7 +58,7 @@ void InsetMarginal::addToToc(DocIterator const & cpit) Toc & toc = buffer().tocBackend().toc("marginalnote"); docstring str; - str = getNewLabel(str); + str = text().getPar(0).asString(); toc.push_back(TocItem(pit, 0, str)); // Proceed with the rest of the inset. InsetFootlike::addToToc(cpit); diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index 414b4e6910..189c290791 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -223,7 +223,7 @@ void InsetNote::addToToc(DocIterator const & cpit) Toc & toc = buffer().tocBackend().toc("note"); docstring str; str = notetranslator_loc().find(params_.type) + from_ascii(": ") - + getNewLabel(str); + + text().getPar(0).asString(); toc.push_back(TocItem(pit, 0, str)); // Proceed with the rest of the inset. InsetCollapsable::addToToc(cpit); -- 2.39.2