firstAnchestorOfType now considers the object itself as well.

It is thus renamed to firstAnchestorOrThisOfType
This commit is contained in:
Jacob Støren
2015-08-14 14:04:47 +02:00
parent 1719a10954
commit f5d15c19e1
8 changed files with 21 additions and 10 deletions

View File

@@ -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,