From 6317b96d19a8af67fb145cd66c08b06299488cee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 12 Oct 2001 12:58:50 +0000 Subject: [PATCH] Fix macro redrawing bug. Thanks, Juergen! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2868 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulamacro.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; } -- 2.39.2