drop unintented static declaration from local temporary variable (formerly a global static constant)

This commit is contained in:
Stephan Witt 2021-01-10 22:02:53 +01:00
parent 31c3bddd6e
commit 2844a4ec06

View File

@ -425,7 +425,7 @@ void GuiPainter::buttonText(int x, int baseline, docstring const & s,
FontMetrics const & fm = theFontMetrics(font);
fm.buttonText(s, offset, width, ascent, descent);
static int const d = offset / 2;
int const d = offset / 2;
fillRectangle(x + d + 1, baseline - ascent + 1, width - offset - 1,
ascent + descent - 1, back);