Make sure errorbars are shown on project reload

This commit is contained in:
Jon Jenssen
2022-08-17 17:59:45 +02:00
committed by Magne Sjaastad
parent a268e6ff3a
commit ee116c8f3d

View File

@@ -1003,7 +1003,9 @@ void RimPlotCurve::setParentPlotNoReplot( RiuPlotWidget* plotWidget )
return;
}
m_plotCurve = m_parentPlot->createPlotCurve( this, "", RiaColorTools::toQColor( m_curveAppearance->color() ) );
auto color = RiaColorTools::toQColor( m_curveAppearance->color() );
m_plotCurve = m_parentPlot->createPlotCurve( this, "", color );
m_plotCurve->updateErrorBarsAppearance( m_showErrorBars, color );
// PERFORMANCE NOTE
// When the z-value of a curve is changed, several update calls are made to the plot. Make sure that the default