Fix drawing of rectangle in old-style macro editing mode

The width was a bit to short.
This commit is contained in:
Jean-Marc Lasgouttes 2017-02-02 14:33:38 +01:00
parent ec676a1dec
commit e0024231d3

View 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