Fix crash when picking on legends in 2D intersection view

This commit is contained in:
Magne Sjaastad
2018-04-30 14:04:46 +02:00
parent 9ba93c6385
commit c989d4eb0d

View File

@@ -345,13 +345,8 @@ std::vector<RimLegendConfig*> Rim2dIntersectionView::legendConfigs() const
{
std::vector<RimLegendConfig*> legendsIn3dView;
Rim3dView* associated3dView = nullptr;
this->firstAncestorOrThisOfType(associated3dView);
if (associated3dView)
{
legendsIn3dView = associated3dView->legendConfigs();
}
legendsIn3dView.push_back(m_legendConfig);
legendsIn3dView.push_back(m_ternaryLegendConfig);
return legendsIn3dView;
}