From cdc847fd304019a19425a0d5d9d42a556a937097 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 12 Jan 2017 12:15:17 +0100 Subject: [PATCH] Fix drawing of empty boxes They were actually bigger than their metrics. --- src/mathed/MathRow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp index cfb41642d4..9465b32690 100644 --- a/src/mathed/MathRow.cpp +++ b/src/mathed/MathRow.cpp @@ -289,7 +289,7 @@ void MathRow::draw(PainterInfo & pi, int x, int const y) const // the box is not visible in non-editable context (except for grey macro boxes). if (e.color != Color_none) pi.pain.rectangle(x + e.before, y - d.ascent(), - d.width(), d.height(), e.color); + d.width() - 1, d.height() - 1, e.color); x += d.wid + e.before + e.after; break; } -- 2.39.2