mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3540 Create seperate 2d view with parallel, look down and linked views
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "RicNewViewFeature.h"
|
||||
|
||||
#include "Rim2dEclipseView.h"
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimGeoMechCase.h"
|
||||
@@ -158,9 +159,12 @@ RimEclipseView* RicNewViewFeature::selectedEclipseView()
|
||||
std::vector<RimEclipseView*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType(&selection);
|
||||
|
||||
if (selection.size() > 0)
|
||||
for (RimEclipseView* view : selection)
|
||||
{
|
||||
return selection[0];
|
||||
if (dynamic_cast<Rim2dEclipseView*>(view) == nullptr)
|
||||
{
|
||||
return view;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user