From e0024231d32bdd3f9d9725be0578f839ed2bf542 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 2 Feb 2017 14:33:38 +0100 Subject: [PATCH] Fix drawing of rectangle in old-style macro editing mode The width was a bit to short. --- src/mathed/MathMacro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 4dae0035eb..c3bbcabbf2 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -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 -- 2.39.2