mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4440 Update legend ranges when changing oil column data
This commit is contained in:
@@ -113,9 +113,11 @@ void RimContourMapProjection::generateResultsIfNecessary(int timeStep)
|
||||
updateGridInformation();
|
||||
progress.setProgress(10);
|
||||
|
||||
if (gridMappingNeedsUpdating() || mapCellVisibilityNeedsUpdating())
|
||||
if (gridMappingNeedsUpdating() || mapCellVisibilityNeedsUpdating() || resultVariableChanged())
|
||||
{
|
||||
clearResults();
|
||||
clearTimeStepRange();
|
||||
|
||||
m_projected3dGridIndices = generateGridMapping();
|
||||
progress.setProgress(20);
|
||||
m_mapCellVisibility = getMapCellVisibility();
|
||||
@@ -126,12 +128,6 @@ void RimContourMapProjection::generateResultsIfNecessary(int timeStep)
|
||||
progress.setProgress(30);
|
||||
}
|
||||
|
||||
if (resultVariableChanged())
|
||||
{
|
||||
clearResults();
|
||||
clearTimeStepRange();
|
||||
}
|
||||
|
||||
if (resultsNeedsUpdating(timeStep))
|
||||
{
|
||||
clearGeometry();
|
||||
|
||||
Reference in New Issue
Block a user