Le 06/10/2016 à 01:36, Guillaume Munch a écrit :
commit 2717ef114c655bd0680aefb27820a2196dacdc22
Author: Guillaume Munch <g...@lyx.org>
Date: Thu Oct 6 01:32:47 2016 +0200
Add the customary 1-pixel gap before MathMacroTemplate to better see cursor
Does it work to do this without increasing the width in metrics?
JMarc
---
src/mathed/MathMacroTemplate.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp
index 5fbba55..cf74272 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)