#2234 Completion Export : Do not include unticked fishbones in project tree

This commit is contained in:
Magne Sjaastad 2017-12-22 15:01:41 +01:00
parent 500b298c26
commit 173ef575fd

View File

@ -830,10 +830,18 @@ bool RicWellPathExportCompletionDataFeature::isPointBetween(const cvf::Vec3d& st
std::vector<WellSegmentLocation> RicWellPathExportCompletionDataFeature::findWellSegmentLocations(const RimEclipseCase* caseToApply, const RimWellPath* wellPath)
{
std::vector<RimFishbonesMultipleSubs*> fishbonesSubs;
for (RimFishbonesMultipleSubs* subs : wellPath->fishbonesCollection()->fishbonesSubs())
if (wellPath->fishbonesCollection()->isChecked())
{
fishbonesSubs.push_back(subs);
for (RimFishbonesMultipleSubs* subs : wellPath->fishbonesCollection()->fishbonesSubs())
{
if (subs->isActive())
{
fishbonesSubs.push_back(subs);
}
}
}
return findWellSegmentLocations(caseToApply, wellPath, fishbonesSubs);
}