#6081 Color Results : Show legends in geomech view

This commit is contained in:
Magne Sjaastad
2020-06-17 13:57:12 +02:00
parent c13f1d752d
commit cc591aa287
2 changed files with 18 additions and 2 deletions

View File

@@ -2206,9 +2206,12 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
absLegends.push_back( wellMeasurement->legendConfig() );
}
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
if ( m_surfaceCollection )
{
absLegends.push_back( legendConfig );
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
{
absLegends.push_back( legendConfig );
}
}
return absLegends;