Fixed crash when toggling separate fault result

when no faultresult had been selected.
Crashed due to missing legend definition
This commit is contained in:
Jacob Støren 2015-09-01 13:53:04 +02:00
parent 26eada49e2
commit c9887c26c6

View File

@ -51,6 +51,9 @@ RimEclipseCellColors::RimEclipseCellColors()
CAF_PDM_InitFieldNoDefault(&m_legendConfigPtrField, "LegendDefinitionPtrField", "Legend Definition PtrField", "", "", "");
this->m_legendConfigPtrField.uiCapability()->setUiHidden(true);
this->m_legendConfigPtrField.uiCapability()->setUiChildrenHidden(true);
// Make sure we have a created legend for the default/undefined result variable
changeLegendConfig(this->resultVariable());
}
//--------------------------------------------------------------------------------------------------