Fix macro redrawing bug. Thanks, Juergen!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2868 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-12 12:58:50 +00:00
parent 9295f8236e
commit 6317b96d19

View File

@ -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;
}