mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8277 StimPlan : Use case insensitive string compare for facies and formations
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user