mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
fix crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21881 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4291d4b0ff
commit
f53f60b1ce
@ -731,10 +731,6 @@ void GuiView::removeWorkArea(GuiWorkArea * wa)
|
||||
d.current_work_area_ = 0;
|
||||
}
|
||||
|
||||
// removing a work area often results from closing a file so
|
||||
// update the toc in any case.
|
||||
updateToc();
|
||||
|
||||
for (int i = 0; i != d.splitter_->count(); ++i) {
|
||||
TabWorkArea * twa = d.tabWorkArea(i);
|
||||
if (!twa->removeWorkArea(wa))
|
||||
|
Loading…
Reference in New Issue
Block a user