mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Bugfix - getting correct pointer for parent case group
Getting the parent field's owner object instead of the owner of this. Removed some out-commented TODO code/comments.
This commit is contained in:
@@ -49,19 +49,7 @@ RimCaseCollection::~RimCaseCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimIdenticalGridCaseGroup* RimCaseCollection::parentCaseGroup()
|
||||
{
|
||||
// MODTODO Remove
|
||||
/*
|
||||
std::vector<RimIdenticalGridCaseGroup*> parentObjects;
|
||||
this->parentObjectsOfType(parentObjects);
|
||||
|
||||
if (parentObjects.size() > 0)
|
||||
{
|
||||
return parentObjects[0];
|
||||
}
|
||||
*/
|
||||
RimIdenticalGridCaseGroup* parentObject = dynamic_cast<RimIdenticalGridCaseGroup*>(this->owner());
|
||||
|
||||
return parentObject;
|
||||
return dynamic_cast<RimIdenticalGridCaseGroup*>(this->parentField()->ownerObject());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user