]> git.lyx.org Git - features.git/commitdiff
Fix crash with collapsable insets and multiple views
authorAbdelrazak Younes <younes@lyx.org>
Wed, 23 May 2007 07:43:16 +0000 (07:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 23 May 2007 07:43:16 +0000 (07:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18471 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp

index 9b7b80f0b1aa63dc87ad9ccf440cc53591492be2..d0cd2ed838f8bcf444611d18304b03462dbee360 100644 (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();
 }