mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
8a8d7cd238
commit
9118cc1800
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user