X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.cpp;h=1c1df328e96ba4e31c07d12ba9c585e59ccbdfeb;hb=d4550b7a4d64e9ff772cf3a7635cb4ca532fb340;hp=9aba39ad8a196c574a89dbc4503893650f693133;hpb=14fa2c71625c715ffcc42d13ee0151333079de2c;p=lyx.git diff --git a/src/insets/InsetMarginal.cpp b/src/insets/InsetMarginal.cpp index 9aba39ad8a..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); - + 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, tooltip)); + toc->push_back(TocItem(pit, 0, str, output_active)); // Proceed with the rest of the inset. InsetFootlike::addToToc(cpit, output_active, utype);