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,8 +494,24 @@ QList<caf::PdmOptionItemInfo> RiuSummaryCurveDefSelection::calculateValueOptions
|
|||||||
bool groupItems = isVectorField && hasObservedData;
|
bool groupItems = isVectorField && hasObservedData;
|
||||||
if (groupItems)
|
if (groupItems)
|
||||||
{
|
{
|
||||||
auto headerText = i == SUM_CASES ? QString("Simulated Data") : QString("Observed Data");
|
QString headerText;
|
||||||
options.push_back(caf::PdmOptionItemInfo::createHeader(headerText, true));
|
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("");
|
auto itemPostfix = (isVectorField && i == OBS_DATA) ? QString(OBSERVED_DATA_AVALUE_POSTFIX) : QString("");
|
||||||
|
Loading…
Reference in New Issue
Block a user