From: Jean-Marc Lasgouttes Date: Thu, 2 Feb 2017 13:33:38 +0000 (+0100) Subject: Fix drawing of rectangle in old-style macro editing mode X-Git-Tag: 2.3.0alpha1~411 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e0024231d32bdd3f9d9725be0578f839ed2bf542;p=features.git Fix drawing of rectangle in old-style macro editing mode The width was a bit to short. --- 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