diff --git a/ApplicationCode/Commands/CrossSectionCommands/RicNewPolylineIntersectionFeature.cpp b/ApplicationCode/Commands/CrossSectionCommands/RicNewPolylineIntersectionFeature.cpp index e08162570f..043d4b3f7d 100644 --- a/ApplicationCode/Commands/CrossSectionCommands/RicNewPolylineIntersectionFeature.cpp +++ b/ApplicationCode/Commands/CrossSectionCommands/RicNewPolylineIntersectionFeature.cpp @@ -108,7 +108,7 @@ void RicNewPolylineIntersectionFeatureCmd::redo() intersection->type = RimIntersection::CS_POLYLINE; intersection->inputPolyLineFromViewerEnabled = true; - m_intersectionCollection->appendIntersectionAndUpdate( intersection ); + m_intersectionCollection->appendIntersectionAndUpdate( intersection, false ); Riu3dSelectionManager::instance()->deleteAllItems(); diff --git a/ApplicationCode/Commands/WellPathCommands/RicIntersectionPickEventHandler.cpp b/ApplicationCode/Commands/WellPathCommands/RicIntersectionPickEventHandler.cpp index d05e42e5b0..8cb36013b0 100644 --- a/ApplicationCode/Commands/WellPathCommands/RicIntersectionPickEventHandler.cpp +++ b/ApplicationCode/Commands/WellPathCommands/RicIntersectionPickEventHandler.cpp @@ -52,13 +52,14 @@ bool RicIntersectionPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& e RimGridView* gridView = nullptr; intersection->firstAncestorOrThisOfTypeAsserted( gridView ); - if ( RiaApplication::instance()->activeGridView() != gridView ) + if ( RiaApplication::instance()->activeMainOrComparisonGridView() != gridView ) { return false; } - cvf::ref transForm = gridView->displayCoordTransform(); - cvf::Vec3d domainCoord = transForm->transformToDomainCoord( + cvf::ref transForm = gridView->displayCoordTransform(); + + cvf::Vec3d domainCoord = transForm->transformToDomainCoord( eventObject.m_pickItemInfos.front().globalPickedPoint() ); if ( intersection->inputPolyLineFromViewerEnabled() )