From 985a667a360663c664da324f07d76dcf6c840c47 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Dec 2020 20:33:52 +0100 Subject: [PATCH] cc_draw: try to fix logic inside setFrameThickness() Signed values had the same effects like unsigned values. Therefore frames were enabled with default control value -1 too. --- src/gui/components/cc_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_draw.cpp b/src/gui/components/cc_draw.cpp index e879cab54..f2589f7e7 100644 --- a/src/gui/components/cc_draw.cpp +++ b/src/gui/components/cc_draw.cpp @@ -237,7 +237,7 @@ void CCDraw::setFrameThickness(const int& thickness) //ensure enabled frame if frame width > 0 cc_enable_frame = false; - if (fr_thickness) + if (fr_thickness > 0) cc_enable_frame = true; }