mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Fix crash when closing a TabGroup. Probably introduced in r27525 and revealed in r30933.
In setCurrentWorkArea d.current_work_area_ is used which is invalidated by deleting the TabWorkArea. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31054 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ab36804b6c
commit
7044b156f0
@ -2265,6 +2265,7 @@ bool GuiView::dispatch(FuncRequest const & cmd)
|
|||||||
case LFUN_CLOSE_TAB_GROUP:
|
case LFUN_CLOSE_TAB_GROUP:
|
||||||
if (TabWorkArea * twa = d.currentTabWorkArea()) {
|
if (TabWorkArea * twa = d.currentTabWorkArea()) {
|
||||||
delete twa;
|
delete twa;
|
||||||
|
d.current_work_area_ = 0;
|
||||||
twa = d.currentTabWorkArea();
|
twa = d.currentTabWorkArea();
|
||||||
// Switch to the next GuiWorkArea in the found TabWorkArea.
|
// Switch to the next GuiWorkArea in the found TabWorkArea.
|
||||||
if (twa) {
|
if (twa) {
|
||||||
|
Loading…
Reference in New Issue
Block a user