]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBranch.cpp
Mini-optimization: We do not need really long tooltips for the TOC.
[features.git] / src / insets / InsetBranch.cpp
index 17191cf6b2bd626c818d03f9ac91e9d4bc6ab5dc..62fb7c4442b3d5cc2351734534788de524762d78 100644 (file)
@@ -302,7 +302,7 @@ void InsetBranch::addToToc(DocIterator const & cpit)
        Toc & toc = buffer().tocBackend().toc("branch");
        docstring str = params_.branch + ": ";
        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.
        InsetCollapsable::addToToc(cpit);
 }