#8843 Summary Curve : Set nullptr as curve symbol for None

This commit is contained in:
Magne Sjaastad 2022-04-26 10:36:32 +02:00
parent cb8b18222e
commit 79fdc825ca

View File

@ -506,12 +506,8 @@ void RiuQwtPlotCurve::setVisibleInLegend( bool isVisibleInLegend )
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RiuQwtPlotCurve::setSymbol( RiuPlotCurveSymbol* symbol ) void RiuQwtPlotCurve::setSymbol( RiuPlotCurveSymbol* symbol )
{ {
if ( symbol ) auto qwtSymbol = dynamic_cast<RiuQwtSymbol*>( symbol );
{ QwtPlotCurve::setSymbol( qwtSymbol );
auto qwtSymbol = dynamic_cast<RiuQwtSymbol*>( symbol );
CAF_ASSERT( qwtSymbol );
QwtPlotCurve::setSymbol( qwtSymbol );
}
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------