]> git.lyx.org Git - features.git/commitdiff
From Ozgur Ugras BARAN:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 15 May 2007 15:09:19 +0000 (15:09 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 15 May 2007 15:09:19 +0000 (15:09 +0000)
* 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

index e805917bf134ad4dc33cded00ed64d3492d68149..60736bd8feb5dec3e983f2b82ad3837b51bf017c 100644 (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);