From 1f352b390c897d583bffaad695c04b613b88a139 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 23 Jan 2017 10:14:20 +0100 Subject: [PATCH] Avoid markers for macros without arguments An example was the \neq macro, which exhibited white markers when selecting. --- src/mathed/MathMacro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index bfa841dbe9..3502d1dfc5 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();