mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* 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:
parent
fc57e5e4ad
commit
c8f549bb4e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user