mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-19 01:24:53 -05:00
#14520 Fix Cell Edge Results loaded even if disabled
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
This commit is contained in:
committed by
Magne Sjaastad
co-authored by
magnesj
parent
acbc041f13
commit
2a0f9a3b25
@@ -61,7 +61,7 @@ RimCellEdgeColors::RimCellEdgeColors()
|
||||
{
|
||||
CAF_PDM_InitObject( "Cell Edge Result", ":/EdgeResult_1.png" );
|
||||
|
||||
CAF_PDM_InitField( &m_enableCellEdgeColors, "EnableCellEdgeColors", true, "Enable Cell Edge Results" );
|
||||
CAF_PDM_InitField( &m_enableCellEdgeColors, "EnableCellEdgeColors", false, "Enable Cell Edge Results" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_propertyType, "propertyType", "Property Type" );
|
||||
|
||||
@@ -112,6 +112,7 @@ void RimCellEdgeColors::setReservoirView( RimEclipseView* ownerReservoirView )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimCellEdgeColors::loadResult()
|
||||
{
|
||||
if ( !m_enableCellEdgeColors() ) return;
|
||||
if ( !m_reservoirView->currentGridCellResults() ) return;
|
||||
|
||||
resetResultAddresses();
|
||||
|
||||
Reference in New Issue
Block a user