#4857 Fix RicNewWellPathIntersectionFeature picking.

Also avoid confusing active view change.
This commit is contained in:
Kristian Bendiksen
2019-10-24 12:46:07 +02:00
parent a51219b1ca
commit 6e43fee396
3 changed files with 5 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ bool RicNewWellPathIntersectionFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicNewWellPathIntersectionFeature::onActionTriggered( bool isChecked )
{
RimGridView* activeView = RiaApplication::instance()->activeGridView();
RimGridView* activeView = RiaApplication::instance()->activeMainOrComparisonGridView();
if ( !activeView ) return;
std::vector<RimWellPath*> collection;
@@ -113,7 +113,7 @@ void RicNewWellPathIntersectionFeatureCmd::redo()
intersection->type = RimIntersection::CS_WELL_PATH;
intersection->wellPath = m_wellPath;
m_intersectionCollection->appendIntersectionAndUpdate( intersection );
m_intersectionCollection->appendIntersectionAndUpdate( intersection, false );
}
//--------------------------------------------------------------------------------------------------