]> git.lyx.org Git - features.git/commitdiff
Fix drawing of rectangle in old-style macro editing mode
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 2 Feb 2017 13:33:38 +0000 (14:33 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 2 Feb 2017 13:33:38 +0000 (14:33 +0100)
The width was a bit to short.

src/mathed/MathMacro.cpp

index 4dae0035eb8625f067a3d3ca3ce01972d59ae86c..c3bbcabbf229e2fb47a9a60a7964aa2a873b2d84 100644 (file)
@@ -764,7 +764,7 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const
                        y += max(fontDim.des, cdim.des);
                }
 
-               pi.pain.rectangle(expx, expy - dim.asc + 1, dim.wid - 3,
+               pi.pain.rectangle(expx, expy - dim.asc + 1, dim.wid - 1,
                                  dim.height() - 2, Color_mathmacroframe);
        } else {
                bool drawBox = lyxrc.macro_edit_style == LyXRC::MACRO_EDIT_INLINE_BOX