From 38f80a5ca6415d290330156cdb9b862fc23129e5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 15 Sep 2017 22:19:22 +0200 Subject: [PATCH] CColorChooser: fix possible artefacts on screen after closed window Window was painted with shadow but hide() method didn't know about this. --- src/gui/widget/colorchooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/colorchooser.cpp b/src/gui/widget/colorchooser.cpp index bee59edb0..f4dfed170 100644 --- a/src/gui/widget/colorchooser.cpp +++ b/src/gui/widget/colorchooser.cpp @@ -271,7 +271,7 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &) void CColorChooser::hide() { - frameBuffer->paintBackgroundBoxRel(x, y, width, height); + frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW); } void CColorChooser::paint()