#8277 StimPlan : Use case insensitive string compare for facies and formations

This commit is contained in:
Magne Sjaastad committed 2021-12-01 16:27:28 +01:00
1 parent d5c8ed79a0
commit d59584bd93
2 files changed
+4 -3

No files matched your search

@@ -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();