X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.cpp;h=4c5bdb00f363610aa42a7e845bbdd00b3582d9d1;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=cf40c4f8180e53ec873a00a94417beb62c6be4dd;hpb=b306e9a2e15664c630e1b462c3db3caf0e9cc9c9;p=lyx.git diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index cf40c4f818..4c5bdb00f3 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -125,16 +125,17 @@ void TocBackend::updateItem(ParConstIterator const & par_it) break; Paragraph const & par = *static_cast(inset).paragraphs().begin(); - if (!toc_item->par_it_->getLabelstring().empty()) - tocstring = toc_item->par_it_->getLabelstring() + ' '; + if (!toc_item->par_it_->labelString().empty()) + tocstring = toc_item->par_it_->labelString() + ' '; tocstring += par.asString(*buffer_, false); break; } } int const toclevel = toc_item->par_it_->layout()->toclevel; - if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel - && tocstring.empty()) + if (toclevel != Layout::NOT_IN_TOC + && toclevel >= min_toclevel + && tocstring.empty()) tocstring = toc_item->par_it_->asString(*buffer_, true); const_cast(*toc_item).str_ = tocstring; @@ -169,8 +170,8 @@ void TocBackend::update() break; Paragraph const & par = *static_cast(inset).paragraphs().begin(); - if (!pit->getLabelstring().empty()) - tocstring = pit->getLabelstring() + ' '; + if (!pit->labelString().empty()) + tocstring = pit->labelString() + ' '; tocstring += par.asString(*buffer_, false); break; }