From 81c092f2c4d4bf78f44fabf7c958e7ff840d27de Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Mon, 6 Jan 2020 08:27:59 +0100 Subject: [PATCH] #5293 Fix draw of category legend rectangles --- ApplicationCode/UserInterface/RiuCategoryLegendFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/UserInterface/RiuCategoryLegendFrame.cpp b/ApplicationCode/UserInterface/RiuCategoryLegendFrame.cpp index bf69673b4d..fbca38e860 100644 --- a/ApplicationCode/UserInterface/RiuCategoryLegendFrame.cpp +++ b/ApplicationCode/UserInterface/RiuCategoryLegendFrame.cpp @@ -89,7 +89,7 @@ void RiuCategoryLegendFrame::renderRect( QPainter* painter, const LayoutInfo& la int yStart = layout.colorBarRect.top() + static_cast( index * categoryHeight ); int yEnd = layout.colorBarRect.top() + static_cast( ( index + 1 ) * categoryHeight ); - QRect rect( QPoint( layout.tickStartX, yStart ), QPoint( layout.tickMidX, yEnd ) ); + QRect rect( QPoint( layout.tickStartX, yStart ), QPoint( layout.tickMidX - 1, yEnd - 1 ) ); painter->fillRect( rect, QBrush( color ) ); }