#5293 Fix draw of category legend rectangles

This commit is contained in:
Gaute Lindkvist 2020-01-06 08:27:59 +01:00
parent 9ffbd97f8c
commit 81c092f2c4

View File

@ -89,7 +89,7 @@ void RiuCategoryLegendFrame::renderRect( QPainter* painter, const LayoutInfo& la
int yStart = layout.colorBarRect.top() + static_cast<int>( index * categoryHeight );
int yEnd = layout.colorBarRect.top() + static_cast<int>( ( 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 ) );
}