mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
71e8668375
commit
7a854d3a91
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user