From 5112e0f8217fb4808219cabade6b49c6a6a6f8c3 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 23 May 2007 07:43:16 +0000 Subject: [PATCH] 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 --- src/insets/InsetCollapsable.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); } -- 2.39.2