mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
@@ -541,6 +541,15 @@ void RimRegularLegendConfig::setAutomaticRanges( double globalMin, double global
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimRegularLegendConfig::initAfterRead()
|
||||
{
|
||||
if ( resultVariableName == "Binary Formation Allen" )
|
||||
{
|
||||
resultVariableName = RiaDefines::formationBinaryAllanResultName();
|
||||
}
|
||||
else if ( resultVariableName == "Formation Allen" )
|
||||
{
|
||||
resultVariableName = RiaDefines::formationAllanResultName();
|
||||
}
|
||||
|
||||
updateFieldVisibility();
|
||||
|
||||
this->updateUiIconFromToggleField();
|
||||
@@ -961,7 +970,7 @@ QList<caf::PdmOptionItemInfo>
|
||||
if ( rftCurveSet ) hasRftPlotParent = true;
|
||||
|
||||
bool isCategoryResult = false;
|
||||
bool isAllenDiagram = false;
|
||||
bool isAllanDiagram = false;
|
||||
{
|
||||
RimEclipseCellColors* eclCellColors = nullptr;
|
||||
this->firstAncestorOrThisOfType( eclCellColors );
|
||||
@@ -983,9 +992,9 @@ QList<caf::PdmOptionItemInfo>
|
||||
isCategoryResult = true;
|
||||
}
|
||||
|
||||
if ( eclCellColors && eclCellColors->resultType() == RiaDefines::ResultCatType::ALLEN_DIAGRAMS )
|
||||
if ( eclCellColors && eclCellColors->resultType() == RiaDefines::ResultCatType::ALLAN_DIAGRAMS )
|
||||
{
|
||||
isAllenDiagram = true;
|
||||
isAllanDiagram = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -996,7 +1005,7 @@ QList<caf::PdmOptionItemInfo>
|
||||
// This is an app enum field, see cafInternalPdmFieldTypeSpecializations.h for the default specialization of
|
||||
// this type
|
||||
std::vector<MappingType> mappingTypes;
|
||||
if ( !isAllenDiagram )
|
||||
if ( !isAllanDiagram )
|
||||
{
|
||||
mappingTypes.push_back( LINEAR_DISCRETE );
|
||||
|
||||
@@ -1023,7 +1032,7 @@ QList<caf::PdmOptionItemInfo>
|
||||
// This is an app enum field, see cafInternalPdmFieldTypeSpecializations.h for the default specialization of
|
||||
// this type
|
||||
std::vector<ColorRangesType> rangeTypes;
|
||||
if ( !isAllenDiagram )
|
||||
if ( !isAllanDiagram )
|
||||
{
|
||||
if ( !hasEnsembleCurveSetParent && !hasRftPlotParent )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user