From dbd31072c44e241920c990e7f0fbb871eaee85ab Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 11 Jun 2007 16:38:45 +0000 Subject: [PATCH] Fix bug 3850. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18740 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/LyXView.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/frontends/LyXView.cpp b/src/frontends/LyXView.cpp index 7772795d83..ec8661e5fd 100644 --- a/src/frontends/LyXView.cpp +++ b/src/frontends/LyXView.cpp @@ -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);