mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
fix crash on application desctruction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24273 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
27dd040f6d
commit
22de2326e9
@ -1352,6 +1352,9 @@ bool TabWorkArea::removeWorkArea(GuiWorkArea * work_area)
|
||||
|
||||
void TabWorkArea::on_currentTabChanged(int i)
|
||||
{
|
||||
// returns e.g. on application destruction
|
||||
if (i == -1)
|
||||
return;
|
||||
GuiWorkArea * wa = dynamic_cast<GuiWorkArea *>(widget(i));
|
||||
LASSERT(wa, /**/);
|
||||
BufferView & bv = wa->bufferView();
|
||||
|
Loading…
Reference in New Issue
Block a user