mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Made new summary curve (filter) possible to start on siblings
This commit is contained in:
parent
bb2a1751c8
commit
92e4fd462d
@ -101,7 +101,9 @@ void RicNewSummaryCurveFeature::setupActionLook(QAction* actionToSetup)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSummaryPlot* RicNewSummaryCurveFeature::selectedSummaryPlot() const
|
||||
{
|
||||
std::vector<RimSummaryPlot*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType(&selection);
|
||||
return selection.size() > 0 ? selection[0] : NULL;
|
||||
caf::PdmObject* selObj = dynamic_cast<caf::PdmObject*>(caf::SelectionManager::instance()->selectedItem());
|
||||
RimSummaryPlot * sumPlot;
|
||||
selObj->firstAncestorOrThisOfType(sumPlot);
|
||||
|
||||
return sumPlot;
|
||||
}
|
||||
|
@ -91,7 +91,9 @@ void RicNewSummaryCurveFilterFeature::setupActionLook(QAction* actionToSetup)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSummaryPlot* RicNewSummaryCurveFilterFeature::selectedSummaryPlot() const
|
||||
{
|
||||
std::vector<RimSummaryPlot*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType(&selection);
|
||||
return selection.size() > 0 ? selection[0] : NULL;
|
||||
caf::PdmObject* selObj = dynamic_cast<caf::PdmObject*>(caf::SelectionManager::instance()->selectedItem());
|
||||
RimSummaryPlot * sumPlot;
|
||||
selObj->firstAncestorOrThisOfType(sumPlot);
|
||||
|
||||
return sumPlot;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user