mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
9295f8236e
commit
6317b96d19
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user