Minor refactoring

This commit is contained in:
Magne Sjaastad 2017-02-28 19:17:36 +01:00
parent a2e2c99167
commit e29c6474bd

View File

@ -127,14 +127,11 @@ void RivWellFracturePartMgr::updatePartGeometryTexture(caf::DisplayCoordTransfor
RimLegendConfig* legendConfig = nullptr;
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
RimStimPlanColors* stimPlanColors;
if (activeView)
if (activeView && activeView->stimPlanColors())
{
stimPlanColors = activeView->stimPlanColors;
if (stimPlanColors->isChecked())
if (activeView->stimPlanColors()->isChecked())
{
legendConfig = stimPlanColors->activeLegend();
legendConfig = activeView->stimPlanColors()->activeLegend();
}
}