Fix Bug-3183 by Ozgur Ugras BARAN:

* 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
This commit is contained in:
Abdelrazak Younes 2007-06-14 11:49:26 +00:00
parent 8561f4f2ca
commit d00d823352

View 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();