]> git.lyx.org Git - features.git/blobdiff - src/frontends/LyXView.C
Part of IU.
[features.git] / src / frontends / LyXView.C
index ef85ab161230e4ab464f848a9419b76eb755089a..da79c4c181567185d3ae0dd8fcb59317ed359826 100644 (file)
@@ -105,7 +105,7 @@ void LyXView::setLayout(string const & layout)
 
 void LyXView::updateToolbar()
 {
-       bool const math = mathcursor;
+       bool const math = inMathed();
        bool const table =
                !getLyXFunc().getStatus(FuncRequest(LFUN_LAYOUT_TABULAR)).disabled();
        toolbar_->update(math, table);