mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
Fixed crash when toggling separate fault result
when no faultresult had been selected. Crashed due to missing legend definition
This commit is contained in:
parent
26eada49e2
commit
c9887c26c6
@ -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());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user