From 9fbee19a7ff7a6f2a015cf922dbbcb1dcaf84294 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 28 Feb 2016 17:21:26 +0100 Subject: [PATCH] Avoid incorrect "Autocorrect Off" message --- src/mathed/InsetMathNest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 493f529d1e..9d90c1959d 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -715,8 +715,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd) cur.selHandle(select); // handle autocorrect: - cur.autocorrect() = false; - cur.message(_("Autocorrect Off ('!' to enter)")); + if (lyxrc.autocorrection_math && cur.autocorrect()) { + cur.autocorrect() = false; + cur.message(_("Autocorrect Off ('!' to enter)")); + } // go up/down bool up = act == LFUN_UP || act == LFUN_UP_SELECT; -- 2.39.5