X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.cpp;h=1c1df328e96ba4e31c07d12ba9c585e59ccbdfeb;hb=d4550b7a4d64e9ff772cf3a7635cb4ca532fb340;hp=cb85ab3c2045bf2028a2890f3569165ea9c5cb98;hpb=cf64064db71ddedb4deb888e63325cea8619a9cd;p=lyx.git diff --git a/src/insets/InsetMarginal.cpp b/src/insets/InsetMarginal.cpp index cb85ab3c20..1c1df328e9 100644 --- a/src/insets/InsetMarginal.cpp +++ b/src/insets/InsetMarginal.cpp @@ -58,13 +58,10 @@ void InsetMarginal::addToToc(DocIterator const & cpit, bool output_active, DocIterator pit = cpit; pit.push_back(CursorSlice(const_cast(*this))); - docstring tooltip; - text().forOutliner(tooltip, TOC_ENTRY_LENGTH); - docstring const str = tooltip; - tooltip = support::wrapParas(tooltip, 0, 60, 2); - - shared_ptr toc = buffer().tocBackend().toc("marginalnote"); - toc->push_back(TocItem(pit, 0, str, output_active, tooltip)); + docstring str; + text().forOutliner(str, TOC_ENTRY_LENGTH); + std::shared_ptr toc = buffer().tocBackend().toc("marginalnote"); + toc->push_back(TocItem(pit, 0, str, output_active)); // Proceed with the rest of the inset. InsetFootlike::addToToc(cpit, output_active, utype);