X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.cpp;h=1964147977395f25256dee7d668aa3c30eb1ee5a;hb=a49c4e3454e428eeb0f2678eb9db3d086b2b789c;hp=9e558aab3050a338c89e72f433b5b1cad1400c92;hpb=d8a6b5bfd0baa02a4ba03f8c9e9c618baf41b03f;p=lyx.git diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index 9e558aab30..1964147977 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -132,7 +132,7 @@ void TocBackend::updateItem(ParConstIterator const & par_it) } } - int const toclevel = toc_item->par_it_->layout()->toclevel; + int const toclevel = toc_item->par_it_->layout().toclevel; if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel && tocstring.empty()) tocstring = toc_item->par_it_->asString(true); @@ -181,7 +181,7 @@ void TocBackend::update() } /// now the toc entry for the paragraph - int const toclevel = pit->layout()->toclevel; + int const toclevel = pit->layout().toclevel; if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel) { // insert this into the table of contents