From 20156f9ec54e45a65bbb7c8765710d7027ee1c1d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Jan 2019 17:34:47 +0100 Subject: [PATCH] Fix broken focus rects (due to yet another Rect semantics bug.) --- Widgets/Painter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Widgets/Painter.cpp b/Widgets/Painter.cpp index 1c50881480..03f403e9f2 100644 --- a/Widgets/Painter.cpp +++ b/Widgets/Painter.cpp @@ -58,9 +58,9 @@ void Painter::draw_rect(const Rect& rect, Color color) bits[x] = color.value(); } } else { - if (r.left() >= m_clip_rect.left() && r.left() < m_clip_rect.right()) + if (r.left() >= m_clip_rect.left() && r.left() <= m_clip_rect.right()) bits[r.left()] = color.value(); - if (r.right() >= m_clip_rect.left() && r.right() < m_clip_rect.right()) + if (r.right() >= m_clip_rect.left() && r.right() <= m_clip_rect.right()) bits[r.right()] = color.value(); } }