]> git.lyx.org Git - features.git/commitdiff
drop unintented static declaration from local temporary variable (formerly a global...
authorStephan Witt <switt@lyx.org>
Sun, 10 Jan 2021 21:02:53 +0000 (22:02 +0100)
committerStephan Witt <switt@lyx.org>
Sun, 10 Jan 2021 21:03:19 +0000 (22:03 +0100)
src/frontends/qt/GuiPainter.cpp

index a143b2b05372e1feea17b5a5ec2ee0ca96089531..4decbfa0a4a304af6d38fc8b6769b60e0382d367 100644 (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);