mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Clear grouping for Grid Cross Plot if the grouping isn't valid when changing case
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#include "RimGridCrossPlot.h"
|
#include "RimGridCrossPlot.h"
|
||||||
#include "RimGridCrossPlotCurve.h"
|
#include "RimGridCrossPlotCurve.h"
|
||||||
#include "RimGridView.h"
|
#include "RimGridView.h"
|
||||||
|
#include "RimFormationNames.h"
|
||||||
#include "RimProject.h"
|
#include "RimProject.h"
|
||||||
#include "RimRegularLegendConfig.h"
|
#include "RimRegularLegendConfig.h"
|
||||||
#include "RimTools.h"
|
#include "RimTools.h"
|
||||||
@@ -810,6 +811,11 @@ void RimGridCrossPlotCurveSet::fieldChangedByUi(const caf::PdmFieldHandle* chang
|
|||||||
m_yAxisProperty->updateConnectedEditors();
|
m_yAxisProperty->updateConnectedEditors();
|
||||||
m_groupingProperty->updateConnectedEditors();
|
m_groupingProperty->updateConnectedEditors();
|
||||||
|
|
||||||
|
if (m_grouping == GROUP_BY_FORMATION && !eclipseCase->activeFormationNames())
|
||||||
|
{
|
||||||
|
m_grouping = NO_GROUPING;
|
||||||
|
}
|
||||||
|
|
||||||
destroyCurves();
|
destroyCurves();
|
||||||
loadDataAndUpdate(true);
|
loadDataAndUpdate(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,8 @@ RigEclipseCrossPlotResult RigEclipseCrossPlotDataExtractor::extract(RigEclipseCa
|
|||||||
}
|
}
|
||||||
else if (groupingType == GROUP_BY_FORMATION)
|
else if (groupingType == GROUP_BY_FORMATION)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(activeFormationNames);
|
if (activeFormationNames)
|
||||||
|
{
|
||||||
int category = 0;
|
int category = 0;
|
||||||
size_t i(cvf::UNDEFINED_SIZE_T), j(cvf::UNDEFINED_SIZE_T), k(cvf::UNDEFINED_SIZE_T);
|
size_t i(cvf::UNDEFINED_SIZE_T), j(cvf::UNDEFINED_SIZE_T), k(cvf::UNDEFINED_SIZE_T);
|
||||||
if (mainGrid->ijkFromCellIndex(globalCellIdx, &i, &j, &k))
|
if (mainGrid->ijkFromCellIndex(globalCellIdx, &i, &j, &k))
|
||||||
@@ -135,6 +136,7 @@ RigEclipseCrossPlotResult RigEclipseCrossPlotDataExtractor::extract(RigEclipseCa
|
|||||||
}
|
}
|
||||||
result.groupValuesDiscrete.push_back(category);
|
result.groupValuesDiscrete.push_back(category);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (groupingType == GROUP_BY_RESULT)
|
else if (groupingType == GROUP_BY_RESULT)
|
||||||
{
|
{
|
||||||
double catValue = HUGE_VAL;
|
double catValue = HUGE_VAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user