mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-13 17:05:59 -06:00
Fix crash in summary plot due to missing guarding in ensemble legend layout
This commit is contained in:
parent
851e68ac31
commit
9d406fef8a
@ -179,6 +179,8 @@ void RiuSummaryQwtPlot::updateEnsembleLegendLayout()
|
|||||||
int ypos = startMarginY;
|
int ypos = startMarginY;
|
||||||
int maxColumnWidth = 0;
|
int maxColumnWidth = 0;
|
||||||
|
|
||||||
|
if (!ownerPlotDefinition() || !ownerPlotDefinition()->ensembleCurveSets()) return;
|
||||||
|
|
||||||
for (RimEnsembleCurveSet * curveSet : ownerPlotDefinition()->ensembleCurveSets()->curveSets())
|
for (RimEnsembleCurveSet * curveSet : ownerPlotDefinition()->ensembleCurveSets()->curveSets())
|
||||||
{
|
{
|
||||||
auto pairIt = m_ensembleLegendWidgets.find(curveSet);
|
auto pairIt = m_ensembleLegendWidgets.find(curveSet);
|
||||||
|
Loading…
Reference in New Issue
Block a user