From 4944e647335d6328307905f571efbb10d0c80df1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 15 May 2007 15:09:19 +0000 Subject: [PATCH] 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 --- src/TocBackend.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.39.2