From 7a854d3a91a68a3e62e4b4b757e811b484439b93 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 17 Apr 2007 14:35:27 +0000 Subject: [PATCH] Fix bug 2993: mark buffer dirty when the status of a collapsable inset is changed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17837 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetcollapsable.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 9dea5d66e3..0adaaf6a77 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -441,6 +441,9 @@ void InsetCollapsable::setStatus(LCursor & cur, CollapseStatus status) setButtonLabel(); if (status_ == Collapsed) cur.leaveInset(*this); + // Because we save CollapseStatus in lyx file, change of status + // should lead to a dirty buffer. (This fixes bug 2993). + cur.bv().buffer()->markDirty(); }