#3482 Fix Eclipse property filter behaviour by reverting order of WellPathComponentType enum

This commit is contained in:
Gaute Lindkvist
2018-10-10 10:06:52 +02:00
parent 06f91a6762
commit fbe7561896
3 changed files with 29 additions and 7 deletions

View File

@@ -20,6 +20,8 @@
#include "RimEclipsePropertyFilter.h"
#include "RiaDefines.h"
#include "RigCaseCellResultsData.h"
#include "RigEclipseCaseData.h"
#include "RigFlowDiagResults.h"
@@ -390,9 +392,10 @@ void RimEclipsePropertyFilter::computeResultValueRange()
else if (resultDefinition->resultVariable() == RiaDefines::completionTypeResultName())
{
std::vector<QString> ctNames;
for (const QString& ctName : caf::AppEnum<RiaDefines::WellPathComponentType>::uiTexts())
ctNames.push_back(caf::AppEnum<RiaDefines::WellPathComponentType>::uiText(RiaDefines::WELL_PATH));
for (RiaDefines::WellPathComponentType type : RiaDefines::wellPathCompletionTypes())
{
ctNames.push_back(ctName);
ctNames.push_back(caf::AppEnum<RiaDefines::WellPathComponentType>::uiText(type));
}
setCategoryNames(ctNames);
}