]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathMacro.cpp
Fix drawing of rectangle in old-style macro editing mode
[features.git] / 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