]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFoot.cpp
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / InsetFoot.cpp
index f311c1d61cfc227e57e46da070ed3975875ca322..fd8038f4ee654fef029a6bb9b4892f464fbef4d5 100644 (file)
@@ -66,8 +66,8 @@ void InsetFoot::addToToc(DocIterator const & cpit)
 
        Toc & toc = buffer().tocBackend().toc("footnote");
        docstring str;
-       str = custom_label_ + ": " + getNewLabel(str);
-       toc.push_back(TocItem(pit, 0, str));
+       str = custom_label_ + ": " + text().getPar(0).asString();
+       toc.push_back(TocItem(pit, 0, str, toolTipText()));
        // Proceed with the rest of the inset.
        InsetFootlike::addToToc(cpit);
 }