#2511 2D Intersection view: Avoid selecting intersection in tree when selecting a cell

This commit is contained in:
Rebecca Cox 2018-02-19 15:11:35 +01:00
parent 0cb14397ac
commit f0d32e6e45

View File

@ -576,7 +576,10 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
intersectionHit = true;
intersectionTriangleHit = crossSectionSourceInfo->triangle(firstPartTriangleIndex);
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection());
if (!dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()))
{
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection());
}
}
else if (intersectionBoxSourceInfo)