Fix crash part of bug #7416. The export status was not being set for

child documents, hence we had no DocIterator for preview.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38204 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-04-02 12:26:03 +00:00
parent 947bda9b02
commit a2abadb9f3

View File

@ -3457,6 +3457,11 @@ namespace {
void Buffer::setExportStatus(bool e) const
{
d->doing_export = e;
ListOfBuffers clist = getDescendents();
ListOfBuffers::const_iterator cit = clist.begin();
ListOfBuffers::const_iterator const cen = clist.end();
for (; cit != cen; ++cit)
(*cit)->d->doing_export = e;
}