mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Avoid markers for macros without arguments
An example was the \neq macro, which exhibited white markers when selecting.
This commit is contained in:
parent
fd8b4aebb0
commit
1f352b390c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user