mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Minor refactoring
This commit is contained in:
parent
a2e2c99167
commit
e29c6474bd
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user