mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5293 Fix draw of category legend rectangles
This commit is contained in:
parent
9ffbd97f8c
commit
81c092f2c4
@ -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 ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user