Fix crash with collapsable insets and multiple views

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18471 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-05-23 07:43:16 +00:00
parent 78378912a3
commit 5112e0f821

View File

@ -442,6 +442,10 @@ void InsetCollapsable::setStatus(Cursor & cur, CollapseStatus status)
setButtonLabel();
if (status_ == Collapsed)
cur.leaveInset(*this);
// Because the collapse status is part of the inset and thus an
// integral part of the Buffer contents a changed status must be
// signaled to all views of current buffer.
cur.bv().buffer()->changed();
}