mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5874 Fix order of colors in legend.
This commit is contained in:
parent
044ab55eea
commit
d768ec88a9
@ -97,7 +97,7 @@ void RimColorLegendCollection::createStandardColorLegends()
|
||||
RimColorLegend* colorLegend = new RimColorLegend;
|
||||
colorLegend->setColorLegendName( legendName );
|
||||
|
||||
for ( int i = (int)colorArray.size() - 1; i > -1; i-- ) // reverse to assign last color to top of legend
|
||||
for ( size_t i = 0; i < colorArray.size(); i++ )
|
||||
{
|
||||
cvf::Color3f color3f( colorArray[i] );
|
||||
QColor colorQ( colorArray[i].r(), colorArray[i].g(), colorArray[i].b() );
|
||||
|
Loading…
Reference in New Issue
Block a user