mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-03 20:57:39 -06:00
#8277 StimPlan : Use case insensitive string compare for facies and formations
This commit is contained in:
parent
5545aff4b5
commit
6940e588b6
@ -99,8 +99,9 @@ double RimElasticPropertyScalingCollection::getScaling( const QString&
|
||||
{
|
||||
for ( const RimElasticPropertyScaling* scaling : m_elasticPropertyScalings )
|
||||
{
|
||||
if ( scaling->property() == property && scaling->formation() == formationName &&
|
||||
scaling->facies() == faciesName && scaling->isChecked() )
|
||||
if ( scaling->property() == property &&
|
||||
( scaling->formation().compare( formationName, Qt::CaseInsensitive ) == 0 ) &&
|
||||
( scaling->facies().compare( faciesName, Qt::CaseInsensitive ) == 0 ) && scaling->isChecked() )
|
||||
{
|
||||
return scaling->scale();
|
||||
}
|
||||
|
@ -1725,7 +1725,7 @@ double RimStimPlanModel::findFaciesValue( const RimColorLegend& colorLegend, con
|
||||
{
|
||||
for ( auto item : colorLegend.colorLegendItems() )
|
||||
{
|
||||
if ( item->categoryName() == name ) return item->categoryValue();
|
||||
if ( item->categoryName().compare( name, Qt::CaseInsensitive ) == 0 ) return item->categoryValue();
|
||||
}
|
||||
|
||||
return std::numeric_limits<double>::infinity();
|
||||
|
Loading…
Reference in New Issue
Block a user