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:
@@ -1636,7 +1636,7 @@ void RiuMainWindow::selectedObjectsChanged()
|
||||
RimView* selectedReservoirView = dynamic_cast<RimView*>(firstSelectedObject);
|
||||
if (!selectedReservoirView && firstSelectedObject)
|
||||
{
|
||||
firstSelectedObject->firstAncestorOfType(selectedReservoirView);
|
||||
firstSelectedObject->firstAnchestorOrThisOfType(selectedReservoirView);
|
||||
}
|
||||
|
||||
// If current selection is an item within a different reservoir view than active,
|
||||
|
||||
Reference in New Issue
Block a user