fix crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21881 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-30 18:34:25 +00:00
parent 4291d4b0ff
commit f53f60b1ce

View File

@ -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))