mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Fix a crash due to Inset**::mouse_hover_[] containing an invalid pointer to a BufferView.
Clear the mouse_hover state when closing the BufferView. Otherwise, there will be an invalid pointer stored in the Inset and crashing LyX when the Inset's destructor is called. See also r33908, r34117, r34348, r34353, r34354, r34363 and bug #3900. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34365 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
351808718d
commit
b269eb9117
@ -315,6 +315,9 @@ BufferView::~BufferView()
|
||||
fp.pit = d->cursor_.bottom().pit();
|
||||
fp.pos = d->cursor_.bottom().pos();
|
||||
theSession().lastFilePos().save(buffer_.fileName(), fp);
|
||||
|
||||
if (d->last_inset_)
|
||||
d->last_inset_->setMouseHover(this, false);
|
||||
|
||||
delete d;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user