Attached patch corrects the buglet mentioned in the heading. I don't know
this quick hack has any consequences, so please somebody verify.
here is the svn log:
Fix unnumbered toc entries do not update automatically as you type.
regards,
Ugras
--- buffer_funcs.cpp-lyx-1.5.0rc1 2007-06-11 10:45:11.000000000 +0300
+++ buffer_funcs.cpp-lyx-1.5.0-working_copy 2007-06-11 10:44:44.000000000 +0300
@@ -709,8 +709,7 @@
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();