Fix crashes in Grid Cross Plot when deleting curve sets

This commit is contained in:
Gaute Lindkvist
2019-03-27 09:39:13 +01:00
parent 8173cb88ee
commit 2b2323a1b6
2 changed files with 11 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ int RimGridCrossPlotCurve::groupIndex() const
//--------------------------------------------------------------------------------------------------
size_t RimGridCrossPlotCurve::sampleCount() const
{
return m_qwtPlotCurve->dataSize();
return m_qwtPlotCurve ? m_qwtPlotCurve->dataSize() : 0;
}
//--------------------------------------------------------------------------------------------------