]> git.lyx.org Git - lyx.git/commitdiff
Avoid incorrect "Autocorrect Off" message
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 28 Feb 2016 16:21:26 +0000 (17:21 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:46 +0000 (17:55 -0400)
src/mathed/InsetMathNest.cpp

index 493f529d1e8c774606fed3fddb719d6fad7d6ca8..9d90c1959ddab418722fbaad5bf0f89176424d2f 100644 (file)
@@ -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;