mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9780: Compare axis unit text case insensitive
This commit is contained in:
parent
b9f6662126
commit
ec611a9a3a
@ -2922,7 +2922,7 @@ void RimSummaryPlot::assignPlotAxis( RimSummaryCurve* destinationCurve )
|
|||||||
|
|
||||||
auto strategy = AxisAssignmentStrategy::USE_MATCHING_UNIT;
|
auto strategy = AxisAssignmentStrategy::USE_MATCHING_UNIT;
|
||||||
|
|
||||||
auto destinationUnit = destinationCurve->unitNameY();
|
auto destinationUnit = RiaStdStringTools::toUpper( destinationCurve->unitNameY() );
|
||||||
if ( destinationUnit.empty() ) strategy = AxisAssignmentStrategy::USE_MATCHING_VECTOR;
|
if ( destinationUnit.empty() ) strategy = AxisAssignmentStrategy::USE_MATCHING_VECTOR;
|
||||||
|
|
||||||
auto anyCurveWithUnitText = [this, destinationCurve] {
|
auto anyCurveWithUnitText = [this, destinationCurve] {
|
||||||
@ -2965,7 +2965,7 @@ void RimSummaryPlot::assignPlotAxis( RimSummaryCurve* destinationCurve )
|
|||||||
if ( c->axisY() == RiuPlotAxis::defaultLeft() ) isLeftUsed = true;
|
if ( c->axisY() == RiuPlotAxis::defaultLeft() ) isLeftUsed = true;
|
||||||
if ( c->axisY() == RiuPlotAxis::defaultRight() ) isRightUsed = true;
|
if ( c->axisY() == RiuPlotAxis::defaultRight() ) isRightUsed = true;
|
||||||
|
|
||||||
auto currentUnit = c->unitNameY();
|
auto currentUnit = RiaStdStringTools::toUpper( c->unitNameY() );
|
||||||
|
|
||||||
if ( currentUnit == destinationUnit )
|
if ( currentUnit == destinationUnit )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user