commit 1f352b390c897d583bffaad695c04b613b88a139
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Mon Jan 23 10:14:20 2017 +0100
Avoid markers for macros without arguments
An example was the \neq macro, which exhibited white markers when selecting.
---
src/mathed/MathMacro.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp
index bfa841d..3502d1d 100644
--- a/src/mathed/MathMacro.cpp
+++ b/src/mathed/MathMacro.cpp
@@ -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();