mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove null pointers from vector of color legend objects
This commit is contained in:
parent
ec40673119
commit
25ee7a1610
@ -2215,6 +2215,8 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
|
||||
}
|
||||
}
|
||||
|
||||
absLegends.erase( std::remove( absLegends.begin(), absLegends.end(), nullptr ), absLegends.end() );
|
||||
|
||||
return absLegends;
|
||||
}
|
||||
|
||||
|
@ -649,6 +649,9 @@ std::vector<RimLegendConfig*> RimGeoMechView::legendConfigs() const
|
||||
}
|
||||
}
|
||||
|
||||
absLegendConfigs.erase( std::remove( absLegendConfigs.begin(), absLegendConfigs.end(), nullptr ),
|
||||
absLegendConfigs.end() );
|
||||
|
||||
return absLegendConfigs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user