mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make curve drawing more robust (#8537)
* Janitor : Improve robustness * Guard nullptr access * Limit the curve points to incoming from/to curve point index range Co-authored-by: magnesj <magnesj@users.noreply.github.com>
This commit is contained in:
@@ -388,7 +388,7 @@ void RimGridTimeHistoryCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
{
|
||||
this->RimPlotCurve::updateCurvePresentation( updateParentPlot );
|
||||
|
||||
if ( isCurveVisible() )
|
||||
if ( isCurveVisible() && m_plotCurve )
|
||||
{
|
||||
std::vector<double> values;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user