mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
54a541d8c6
commit
acff67f259
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user