diff options
Diffstat (limited to 'Widgets/Painter.cpp')
-rw-r--r-- | Widgets/Painter.cpp | 4 |
1 files 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(); } } |