]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetMarginal.cpp
Mini-optimization: We do not need really long tooltips for the TOC.
[features.git] / src / insets / InsetMarginal.cpp
index f40e164d03e359b6477399f406a953d5c1aa0082..0250d32370386674ca5bdeee3e7fb6832898f1f3 100644 (file)
@@ -59,7 +59,7 @@ void InsetMarginal::addToToc(DocIterator const & cpit)
        Toc & toc = buffer().tocBackend().toc("marginalnote");
        docstring str;
        text().forToc(str, TOC_ENTRY_LENGTH);
-       toc.push_back(TocItem(pit, 0, str, toolTipText()));
+       toc.push_back(TocItem(pit, 0, str, toolTipText(docstring(), 3, 60)));
        // Proceed with the rest of the inset.
        InsetFootlike::addToToc(cpit);
 }