Fix bug 3850.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18740 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-06-11 16:38:45 +00:00
parent 69a81aecfa
commit dbd31072c4

View File

@ -403,11 +403,8 @@ void LyXView::updateLayoutChoice()
}
BOOST_ASSERT(work_area_);
if (work_area_->bufferView().cursor().inMathed())
return;
string const & layout =
work_area_->bufferView().cursor().paragraph().layout()->name();
string const & layout = work_area_->bufferView().cursor().
innerParagraph().layout()->name();
if (layout != current_layout) {
toolbars_->setLayout(layout);