mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4857 Fix RicShowWellAllocationPlotFeature picking.
This commit is contained in:
parent
59c25c6762
commit
41b58b9099
@ -57,7 +57,7 @@ bool RicShowWellAllocationPlotFeature::isCommandEnabled()
|
||||
|
||||
if ( wellPathCollection.empty() ) return false;
|
||||
|
||||
Rim3dView* view = RiaApplication::instance()->activeReservoirView();
|
||||
Rim3dView* view = RiaApplication::instance()->activeMainOrComparisonGridView();
|
||||
if ( !view ) return false;
|
||||
RimEclipseView* eclView = dynamic_cast<RimEclipseView*>( view );
|
||||
if ( !eclView ) return false;
|
||||
@ -92,7 +92,7 @@ void RicShowWellAllocationPlotFeature::onActionTriggered( bool isChecked )
|
||||
}
|
||||
else if ( wellPathCollection.size() > 0 )
|
||||
{
|
||||
Rim3dView* view = RiaApplication::instance()->activeReservoirView();
|
||||
Rim3dView* view = RiaApplication::instance()->activeMainOrComparisonGridView();
|
||||
if ( !view ) return;
|
||||
RimEclipseView* eclView = dynamic_cast<RimEclipseView*>( view );
|
||||
if ( !eclView ) return;
|
||||
|
Loading…
Reference in New Issue
Block a user