X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.cpp;h=4c5bdb00f363610aa42a7e845bbdd00b3582d9d1;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=00a55a987097d56475c809145c5bf1daa6e098a1;hpb=0fb8f3fba12ab9fb395ef40e21b5ba50a5e0b9df;p=lyx.git diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index 00a55a9870..4c5bdb00f3 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -133,8 +133,9 @@ void TocBackend::updateItem(ParConstIterator const & par_it) } 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;