* BufferView_pimpl.C

(BufferView::Pimpl::dispatch): prevent crash with section header 
	not in the main lyxtext



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13696 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2006-04-20 06:50:26 +00:00
parent fc57e5e4ad
commit c8f549bb4e

View File

@ -1234,7 +1234,7 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & cmd)
lyx::toc::OutlineOp const op =
static_cast<lyx::toc::OutlineOp>(convert<int>(cmd.argument));
lyx::toc::outline(op, buffer_, cursor_.pit());
bv_->text()->setCursor(cursor_, cursor_.pit(), 0);
cursor_.text()->setCursor(cursor_, cursor_.pit(), 0);
buffer_->markDirty();
updateLabels(*buffer_);
update();