From: Abdelrazak Younes Date: Thu, 14 Jun 2007 11:49:26 +0000 (+0000) Subject: Fix Bug-3183 by Ozgur Ugras BARAN: X-Git-Tag: 1.6.10~9394 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d00d8233529876bd1cea6c65b3d528a10eafcf5f;p=features.git 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 --- diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index bed9c147ae..0080874610 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -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();