mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Fix another crash due to BufferView::last_inset_ being an invalid pointer.
Do not clear the mouse_hover state from anywhere else then BufferView, such that the last_inset_ pointer gets nulled. Besides, there is no reason to clear the mouse_hover state on collapsing the Inset. See also r33908, r34117, r34348, r34353, r34354 and bug #3900. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34364 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
49920e31d6
commit
351808718d
@ -591,10 +591,8 @@ void InsetCollapsable::setStatus(Cursor & cur, CollapseStatus status)
|
|||||||
{
|
{
|
||||||
status_ = status;
|
status_ = status;
|
||||||
setButtonLabel();
|
setButtonLabel();
|
||||||
if (status_ == Collapsed) {
|
if (status_ == Collapsed)
|
||||||
cur.leaveInset(*this);
|
cur.leaveInset(*this);
|
||||||
mouse_hover_.clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user