#6164 Color Legend : Update category colors when project file is loaded

This commit is contained in:
Magne Sjaastad
2020-06-30 17:10:51 +02:00
parent 7c8fced4fe
commit 18e0c8999e
3 changed files with 31 additions and 15 deletions

View File

@@ -1983,7 +1983,7 @@ void RimEclipseResultDefinition::updateRangesForExplicitLegends( RimRegularLegen
int frmIdx2 = it->first.second;
int combIndex = it->second;
int fnVectorSize = fnVector.size();
int fnVectorSize = static_cast<int>( fnVector.size() );
if ( frmIdx1 >= fnVectorSize || frmIdx2 >= fnVectorSize ) continue;
QString frmName1 = fnVector[frmIdx1];