Avoid markers for macros without arguments

An example was the \neq macro, which exhibited white markers when selecting.
This commit is contained in:
Jean-Marc Lasgouttes 2017-01-23 10:14:20 +01:00
parent fd8b4aebb0
commit 1f352b390c

View File

@ -313,7 +313,7 @@ bool MathMacro::addToMathRow(MathRow & mrow, MetricsInfo & mi) const
MathRow::Element e_beg(mi, MathRow::BEG_MACRO);
e_beg.inset = this;
e_beg.macro = this;
e_beg.marker = d->nesting_ == 1 ? marker() : NO_MARKER;
e_beg.marker = (d->nesting_ == 1 && nargs()) ? marker() : NO_MARKER;
mrow.push_back(e_beg);
d->macro_->lock();