The branch, betterspacing, has been updated. - Log -----------------------------------------------------------------
commit c2c0f354e8cb41690da1bb7bf7a4abd932dff210 Author: Jean-Marc Lasgouttes <[email protected]> Date: Tue Nov 15 17:03:14 2016 +0100 Fixup: fix empty box for macro argument diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 708f30a..a5b1803 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -84,18 +84,18 @@ public: bool has_contents = mathMacro_->cell(idx_).addToMathRow(mrow, mi); mathMacro_->macro()->lock(); - if (mi.base.macro_nesting == 0) - mi.base.macro_nesting = 1; - // if there was no contents, and the contents is editable, // then we insert a box instead. - if (!has_contents && mi.base.macro_nesting == 1) { + if (!has_contents && mi.base.macro_nesting == 0) { MathRow::Element e(MathRow::BOX, mi); e.color = Color_mathline; mrow.push_back(e); has_contents = true; } + if (mi.base.macro_nesting == 0) + mi.base.macro_nesting = 1; + MathRow::Element e_end(MathRow::END_ARG, mi); e_end.macro = mathMacro_; e_end.ar = &mathMacro_->cell(idx_); ----------------------------------------------------------------------- Summary of changes: src/mathed/MathMacro.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Repository for new features
