mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
InsetMathMacoTemplate: recompute metrics on editXY too
This inset can change dimensions when edited (like macros can). Therefore Update::SinglePar should be set with editXY() like it is already set for edit().
This commit is contained in:
parent
f48cf46101
commit
b54d352075
@ -625,6 +625,14 @@ void InsetMathMacroTemplate::edit(Cursor & cur, bool front, EntryDirection entry
|
||||
}
|
||||
|
||||
|
||||
Inset * InsetMathMacroTemplate::editXY(Cursor & cur, int x, int y)
|
||||
{
|
||||
updateLook();
|
||||
cur.screenUpdateFlags(Update::SinglePar);
|
||||
return InsetMathNest::editXY(cur, x, y);
|
||||
}
|
||||
|
||||
|
||||
bool InsetMathMacroTemplate::notifyCursorLeaves(Cursor const & old, Cursor & cur)
|
||||
{
|
||||
unsigned int const nargs_before = nargs();
|
||||
|
@ -43,6 +43,8 @@ public:
|
||||
///
|
||||
void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
|
||||
///
|
||||
Inset * editXY(Cursor & cur, int x, int y) override;
|
||||
///
|
||||
bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
|
||||
///
|
||||
void read(support::Lexer & lex) override;
|
||||
|
Loading…
Reference in New Issue
Block a user