]> git.lyx.org Git - features.git/commitdiff
Fix Bug-3183 by Ozgur Ugras BARAN:
authorAbdelrazak Younes <younes@lyx.org>
Thu, 14 Jun 2007 11:49:26 +0000 (11:49 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 14 Jun 2007 11:49:26 +0000 (11:49 +0000)
* checkBufferStructure(): Fix unnumbered toc entries that do not update automatically as you type.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18768 a592a061-630c-0410-9148-cb99ea01b6c8

src/buffer_funcs.cpp

index bed9c147ae5690ad4528d15486c1556df3b89304..0080874610693be76d3f3cf7a836b159aa0b3624 100644 (file)
@@ -709,8 +709,7 @@ void updateLabels(Buffer const & buf, bool childonly)
 
 void checkBufferStructure(Buffer & buffer, ParIterator const & par_it)
 {
-       if (par_it->layout()->labeltype == LABEL_COUNTER
-               && par_it->layout()->toclevel != Layout::NOT_IN_TOC) {
+       if (par_it->layout()->toclevel != Layout::NOT_IN_TOC) {
                Buffer * master = buffer.getMasterBuffer();
                master->tocBackend().updateItem(par_it);
                master->structureChanged();