Really fix bug 4857.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-21 12:39:40 +00:00
parent 8a8d7cd238
commit 9118cc1800
3 changed files with 11 additions and 5 deletions

View File

@ -710,10 +710,13 @@ void updateLabels(Buffer const & buf, bool childonly)
}
}
Buffer & cbuf = const_cast<Buffer &>(buf);
cbuf.tocBackend().update();
if (!childonly)
cbuf.structureChanged();
// The Toc backend of child documents will be done later in InsetInclude::addToToc()
if (master == &buf) {
Buffer & cbuf = const_cast<Buffer &>(buf);
cbuf.tocBackend().update();
if (!childonly)
cbuf.structureChanged();
}
}

View File

@ -915,10 +915,11 @@ void InsetInclude::addToToc(TocList & toclist, Buffer const & buffer, ParConstIt
}
return;
}
Buffer const * const childbuffer = getChildBuffer(buffer, params_);
Buffer * childbuffer = getChildBuffer(buffer, params_);
if (!childbuffer)
return;
childbuffer->tocBackend().update();
TocList const & childtoclist = childbuffer->tocBackend().tocs();
TocList::const_iterator it = childtoclist.begin();
TocList::const_iterator const end = childtoclist.end();

View File

@ -70,6 +70,8 @@ What's new
- Fix display of filters such as "LaTeX (plain)" in the file dialog.
- Fix crash related to the outline pane with some documents (bug 4857).
* DOCUMENTATION AND LOCALIZATION