mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Multi page plot works
This commit is contained in:
@@ -199,5 +199,6 @@ void RiuScalarMapperLegendFrame::renderRect( QPainter* painter, const LayoutInfo
|
||||
int RiuScalarMapperLegendFrame::labelPixelPosY( const LayoutInfo& layout, int index ) const
|
||||
{
|
||||
int indexFromBottom = labelCount() - index - 1;
|
||||
return layout.colorBarRect.bottom() - layout.tickYPixelPos[indexFromBottom] + layout.charAscent / 2;
|
||||
int offset = layout.charAscent - static_cast<int>( std::ceil( layout.charHeight / 2.0 ) );
|
||||
return layout.colorBarRect.bottom() - layout.tickYPixelPos[indexFromBottom] + offset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user