From 2717ef114c655bd0680aefb27820a2196dacdc22 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Thu, 6 Oct 2016 01:32:47 +0200 Subject: [PATCH] Add the customary 1-pixel gap before MathMacroTemplate to better see cursor --- src/mathed/MathMacroTemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2