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;
|
RimLegendConfig* legendConfig = nullptr;
|
||||||
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||||
RimStimPlanColors* stimPlanColors;
|
if (activeView && activeView->stimPlanColors())
|
||||||
if (activeView)
|
|
||||||
{
|
{
|
||||||
stimPlanColors = activeView->stimPlanColors;
|
if (activeView->stimPlanColors()->isChecked())
|
||||||
|
|
||||||
if (stimPlanColors->isChecked())
|
|
||||||
{
|
{
|
||||||
legendConfig = stimPlanColors->activeLegend();
|
legendConfig = activeView->stimPlanColors()->activeLegend();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user