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
This commit is contained in:
Bo Peng 2007-04-17 14:35:27 +00:00
parent 71e8668375
commit 7a854d3a91

View File

@ -441,6 +441,9 @@ void InsetCollapsable::setStatus(LCursor & cur, CollapseStatus status)
setButtonLabel(); setButtonLabel();
if (status_ == Collapsed) if (status_ == Collapsed)
cur.leaveInset(*this); 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();
} }