From: André Pönitz Date: Fri, 12 Oct 2001 12:58:50 +0000 (+0000) Subject: Fix macro redrawing bug. Thanks, Juergen! X-Git-Tag: 1.6.10~20492 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6317b96d19a8af67fb145cd66c08b06299488cee;p=features.git Fix macro redrawing bug. Thanks, Juergen! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2868 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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; }