mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Fix display of empty box in nested macros
The rewrite of nesting handling at 0f15dcc6
was incomplete: the
macro nesting has to be reset to 0 when inside a macro argument at
level 1.
This commit is contained in:
parent
8914ddeaee
commit
d221d1734a
@ -82,7 +82,8 @@ public:
|
||||
// macro arguments are in macros
|
||||
LATTEST(mathMacro_->nesting() > 0);
|
||||
/// The macro nesting can change display of insets. Change it locally.
|
||||
Changer chg = make_change(mi.base.macro_nesting, mathMacro_->nesting());
|
||||
Changer chg = make_change(mi.base.macro_nesting,
|
||||
mathMacro_->nesting() == 1 ? 0 : mathMacro_->nesting());
|
||||
|
||||
MathRow::Element e_beg(MathRow::BEG_ARG);
|
||||
e_beg.macro = mathMacro_;
|
||||
|
Loading…
Reference in New Issue
Block a user