mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2276 : Source Stepping : Improve region ordering
Internally, region numbers are stored in a set and then ordered correctly. When converting to strings for UI, the sorting criteria changes, and the order is wrong. If a vector is used to represent the UI strings, the problem is solved.
This commit is contained in:
@@ -227,7 +227,7 @@ QList<caf::PdmOptionItemInfo> RimSummaryPlotSourceStepping::calculateValueOption
|
||||
return options;
|
||||
}
|
||||
|
||||
std::set<QString> identifierTexts;
|
||||
std::vector<QString> identifierTexts;
|
||||
|
||||
RifSummaryReaderInterface* reader = firstSummaryReaderForVisibleCurves();
|
||||
if (reader)
|
||||
@@ -265,7 +265,7 @@ QList<caf::PdmOptionItemInfo> RimSummaryPlotSourceStepping::calculateValueOption
|
||||
quantityAnalyzer.appendAdresses(subset);
|
||||
for (const auto& quantity : quantityAnalyzer.quantities())
|
||||
{
|
||||
identifierTexts.insert(QString::fromStdString(quantity));
|
||||
identifierTexts.push_back(QString::fromStdString(quantity));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user