mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1969 Curve Calculator : Guard against invalid summary category
This commit is contained in:
parent
6fd9bec353
commit
e95b9a66a5
@ -704,9 +704,11 @@ std::set<RifEclipseSummaryAddress> RiuSummaryCurveDefSelection::buildAddressList
|
||||
std::set<RifEclipseSummaryAddress> addressSet;
|
||||
for (const auto& category : m_selectedSummaryCategories())
|
||||
{
|
||||
const auto& identifierAndFieldList = m_identifierFieldsMap.at(category);
|
||||
std::vector<std::pair<RifEclipseSummaryAddress::SummaryIdentifierType, QString>> selectionStack;
|
||||
buildAddressListForCategoryRecursively(category, identifierAndFieldList.begin(), selectionStack, addressSet);
|
||||
if (category == RifEclipseSummaryAddress::SummaryVarCategory::SUMMARY_INVALID) continue;
|
||||
|
||||
const auto& identifierAndFieldList = m_identifierFieldsMap.at(category);
|
||||
std::vector<std::pair<RifEclipseSummaryAddress::SummaryIdentifierType, QString>> selectionStack;
|
||||
buildAddressListForCategoryRecursively(category, identifierAndFieldList.begin(), selectionStack, addressSet);
|
||||
}
|
||||
return addressSet;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user