]> git.lyx.org Git - features.git/commitdiff
Add the customary 1-pixel gap before MathMacroTemplate to better see cursor
authorGuillaume Munch <gm@lyx.org>
Wed, 5 Oct 2016 23:32:47 +0000 (01:32 +0200)
committerGuillaume Munch <gm@lyx.org>
Wed, 5 Oct 2016 23:35:29 +0000 (01:35 +0200)
src/mathed/MathMacroTemplate.cpp

index 5fbba55656435865580fb19febf85b52c6d1845b..cf7427205dbef93b7c290558967944082e119394 100644 (file)
@@ -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)