mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8411 Flow Cell Results : Set useful default legend
This commit is contained in:
@@ -208,6 +208,12 @@ RimRegularLegendConfig* RimEclipseCellColors::createLegendForResult( const QStri
|
||||
newLegend->resetUserDefinedValues();
|
||||
}
|
||||
|
||||
if ( RiaResultNames::isFlowResultWithBothPosAndNegValues( resultName ) )
|
||||
{
|
||||
colorRangeType = RimRegularLegendConfig::ColorRangesType::BLUE_WHITE_RED;
|
||||
newLegend->setCenterLegendAroundZero( true );
|
||||
}
|
||||
|
||||
if ( colorRangeType != RimRegularLegendConfig::ColorRangesType::UNDEFINED )
|
||||
{
|
||||
RimColorLegend* colorLegend = RimRegularLegendConfig::mapToColorLegend( colorRangeType );
|
||||
|
||||
Reference in New Issue
Block a user