From: Jürgen Spitzmüller Date: Tue, 15 May 2007 15:09:19 +0000 (+0000) Subject: From Ozgur Ugras BARAN: X-Git-Tag: 1.6.10~9758 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4944e647335d6328307905f571efbb10d0c80df1;p=features.git From Ozgur Ugras BARAN: * src/TocBackend.cpp: - Allow TOC entries with depth larger than bufferParams.tocdepth. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18346 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index e805917bf1..60736bd8fe 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -156,7 +156,6 @@ 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 - && toclevel <= bufparams.tocdepth && tocstring.empty()) tocstring = toc_item->par_it_->asString(*buffer_, true); @@ -205,8 +204,7 @@ void TocBackend::update() /// now the toc entry for the paragraph int const toclevel = pit->layout()->toclevel; if (toclevel != Layout::NOT_IN_TOC - && toclevel >= min_toclevel - && toclevel <= bufparams.tocdepth) { + && toclevel >= min_toclevel) { // insert this into the table of contents if (tocstring.empty()) tocstring = pit->asString(*buffer_, true);