From: Abdelrazak Younes Date: Wed, 23 May 2007 07:43:16 +0000 (+0000) Subject: Fix crash with collapsable insets and multiple views X-Git-Tag: 1.6.10~9659 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5112e0f8217fb4808219cabade6b49c6a6a6f8c3;p=features.git 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 --- diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index 9b7b80f0b1..d0cd2ed838 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -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(); }