Multi Axis: Make sure widget axis is created during assignment of plot axis

This commit is contained in:
Magne Sjaastad 2022-04-04 14:44:29 +02:00
parent 391d13565e
commit ca61e9f9a8

View File

@ -1196,6 +1196,8 @@ void RimSummaryPlot::connectCurveToPlot( RimSummaryCurve* curve, bool update, bo
connectCurveSignals( curve );
if ( plotWidget() )
{
plotWidget()->ensureAxisIsCreated( curve->axisY() );
if ( update )
{
curve->setParentPlotAndReplot( plotWidget() );