diff --git a/ApplicationCode/ProjectDataModel/RimWellPath.cpp b/ApplicationCode/ProjectDataModel/RimWellPath.cpp index 57c0db8f0f..2beb1f8093 100644 --- a/ApplicationCode/ProjectDataModel/RimWellPath.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellPath.cpp @@ -240,8 +240,15 @@ void RimWellPath::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons partMgr()->scheduleGeometryRegen(); RimProject* proj; - this->firstAncestorOrThisOfType(proj); - if (proj) proj->createDisplayModelAndRedrawAllViews(); + this->firstAncestorOrThisOfTypeAsserted(proj); + if (changedField == &showWellPath) + { + proj->removeResult(RimDefines::DYNAMIC_NATIVE, RimDefines::completionTypeResultName()); + } + else + { + proj->createDisplayModelAndRedrawAllViews(); + } } //--------------------------------------------------------------------------------------------------