mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
78378912a3
commit
5112e0f821
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user