mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2160 Curve Address Selection. Fix duplicate observed data header
This commit is contained in:
parent
fb24a9f29b
commit
e65370eff7
@ -494,9 +494,25 @@ QList<caf::PdmOptionItemInfo> RiuSummaryCurveDefSelection::calculateValueOptions
|
||||
bool groupItems = isVectorField && hasObservedData;
|
||||
if (groupItems)
|
||||
{
|
||||
auto headerText = i == SUM_CASES ? QString("Simulated Data") : QString("Observed Data");
|
||||
QString headerText;
|
||||
if (i == SUM_CASES)
|
||||
{
|
||||
headerText = QString("Simulated Data");
|
||||
}
|
||||
else if (i == OBS_DATA)
|
||||
{
|
||||
headerText = QString("Observed Data");
|
||||
}
|
||||
else if (i == CALCULATED_CURVES)
|
||||
{
|
||||
headerText = QString("Calculated");
|
||||
}
|
||||
|
||||
if (!headerText.isEmpty())
|
||||
{
|
||||
options.push_back(caf::PdmOptionItemInfo::createHeader(headerText, true));
|
||||
}
|
||||
}
|
||||
|
||||
auto itemPostfix = (isVectorField && i == OBS_DATA) ? QString(OBSERVED_DATA_AVALUE_POSTFIX) : QString("");
|
||||
for (const auto& iName : itemNames[i])
|
||||
|
Loading…
Reference in New Issue
Block a user