mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Enable value filter in statistics contourmap (#12078)
* Enable value filtering in stat contourmap and fix map redraw logic * Make switching case in contourmap work
This commit is contained in:
@@ -382,8 +382,8 @@ bool RimContourMapProjection::gridMappingNeedsUpdating() const
|
||||
if ( cellGridIdxVisibility.isNull() ) return true;
|
||||
|
||||
cvf::ref<cvf::UByteArray> currentVisibility = getCellVisibility();
|
||||
if ( currentVisibility->size() != cellGridIdxVisibility->size() ) return true;
|
||||
|
||||
CVF_ASSERT( currentVisibility->size() == cellGridIdxVisibility->size() );
|
||||
for ( size_t i = 0; i < currentVisibility->size(); ++i )
|
||||
{
|
||||
if ( ( *currentVisibility )[i] != ( *cellGridIdxVisibility )[i] ) return true;
|
||||
@@ -540,9 +540,7 @@ void RimContourMapProjection::fieldChangedByUi( const caf::PdmFieldHandle* chang
|
||||
}
|
||||
|
||||
baseView()->updateConnectedEditors();
|
||||
|
||||
RimProject* proj = RimProject::current();
|
||||
proj->scheduleCreateDisplayModelAndRedrawAllViews();
|
||||
baseView()->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user