#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

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