mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
firstAnchestorOfType now considers the object itself as well.
It is thus renamed to firstAnchestorOrThisOfType
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
caf::PdmObjectHandle* objHandle = uiFieldHandle->fieldHandle()->ownerObject();
|
||||
|
||||
RimView* view = NULL;
|
||||
objHandle->firstAncestorOfType(view);
|
||||
objHandle->firstAnchestorOrThisOfType(view);
|
||||
CVF_ASSERT(view);
|
||||
|
||||
view->scheduleGeometryRegen(RANGE_FILTERED);
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
caf::PdmObjectHandle* objHandle = uiFieldHandle->fieldHandle()->ownerObject();
|
||||
|
||||
RimEclipseView* view = NULL;
|
||||
objHandle->firstAncestorOfType(view);
|
||||
objHandle->firstAnchestorOrThisOfType(view);
|
||||
CVF_ASSERT(view);
|
||||
|
||||
view->scheduleGeometryRegen(PROPERTY_FILTERED);
|
||||
@@ -115,7 +115,7 @@ void RimEclipsePropertyFilterCollection::fieldChangedByUi(const caf::PdmFieldHan
|
||||
this->updateUiIconFromToggleField();
|
||||
|
||||
RimEclipseView* view = NULL;
|
||||
this->firstAncestorOfType(view);
|
||||
this->firstAnchestorOrThisOfType(view);
|
||||
CVF_ASSERT(view);
|
||||
|
||||
view->scheduleGeometryRegen(PROPERTY_FILTERED);
|
||||
|
||||
@@ -70,7 +70,7 @@ void RimFault::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const Q
|
||||
{
|
||||
RimEclipseView* reservoirView = NULL;
|
||||
|
||||
this->firstAncestorOfType(reservoirView);
|
||||
this->firstAnchestorOrThisOfType(reservoirView);
|
||||
|
||||
if (reservoirView)
|
||||
{
|
||||
|
||||
@@ -1528,7 +1528,7 @@ double RimReservoirCellResultsStorage::darchysValue()
|
||||
double darchy = 0.008527; // (ECLIPSE 100) (METRIC)
|
||||
|
||||
RimEclipseCase* rimCase = NULL;
|
||||
this->firstAncestorOfType(rimCase);
|
||||
this->firstAnchestorOrThisOfType(rimCase);
|
||||
|
||||
if (rimCase && rimCase->reservoirData())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user