(#548) Adding only well paths with LAS files to property editor for curves

This commit is contained in:
Pål Hagen
2015-09-25 18:04:10 +02:00
parent 63467b0960
commit 803cc4328d

View File

@@ -180,9 +180,12 @@ QList<caf::PdmOptionItemInfo> RimWellLogFileCurve::calculateValueOptions(const c
caf::PdmChildArrayField<RimWellPath*>& wellPaths = proj->activeOilField()->wellPathCollection()->wellPaths; caf::PdmChildArrayField<RimWellPath*>& wellPaths = proj->activeOilField()->wellPathCollection()->wellPaths;
for (size_t i = 0; i < wellPaths.size(); i++) for (size_t i = 0; i < wellPaths.size(); i++)
{
if (wellPaths[i]->m_wellLogFile())
{ {
optionList.push_back(caf::PdmOptionItemInfo(wellPaths[i]->name(), QVariant::fromValue(caf::PdmPointer<caf::PdmObjectHandle>(wellPaths[i])))); optionList.push_back(caf::PdmOptionItemInfo(wellPaths[i]->name(), QVariant::fromValue(caf::PdmPointer<caf::PdmObjectHandle>(wellPaths[i]))));
} }
}
if (optionList.size() > 0) if (optionList.size() > 0)
{ {