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
This commit is contained in:
Vincent van Ravesteijn 2010-04-25 22:18:46 +00:00
parent 54a541d8c6
commit acff67f259
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);