diff --git a/src/mathed/formulamacro.C b/src/mathed/formulamacro.C index d98c7b0530..d8b620d87d 100644 --- a/src/mathed/formulamacro.C +++ b/src/mathed/formulamacro.C @@ -36,6 +36,7 @@ #include "support/LOstream.h" #include "debug.h" #include "lyxlex.h" +#include "lyxtext.h" #include "lyxfont.h" using std::ostream; @@ -155,8 +156,14 @@ InsetFormulaMacro::localDispatch(BufferView * bv, break; } - default: + default: { result = InsetFormulaBase::localDispatch(bv, action, arg); + // force redraw if anything happened + if (result != UNDISPATCHED) { + bv->text->status(bv, LyXText::NEED_MORE_REFRESH); + bv->updateInset(this, false); + } + } } return result; }