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
This commit is contained in:
Jürgen Spitzmüller 2007-05-15 15:09:19 +00:00
parent 20fd0f9cf3
commit 4944e64733

View File

@ -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);