From: Guillaume Munch Date: Wed, 5 Oct 2016 23:32:47 +0000 (+0200) Subject: Add the customary 1-pixel gap before MathMacroTemplate to better see cursor X-Git-Tag: 2.3.0alpha1~921 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2717ef114c655bd0680aefb27820a2196dacdc22;p=features.git Add the customary 1-pixel gap before MathMacroTemplate to better see cursor --- diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index 5fbba55656..cf7427205d 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -597,7 +597,7 @@ void MathMacroTemplate::draw(PainterInfo & pi, int x, int y) const int const a = y - dim.asc + 1; int const w = dim.wid - 2; int const h = dim.height() - 2; - pi.pain.rectangle(x, a, w, h, Color_mathframe); + pi.pain.rectangle(x + 1, a, w, h, Color_mathframe); // just to be sure: set some dummy values for coord cache for (idx_type i = 0; i < nargs(); ++i)