mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#14011 FlowRateCurve: Guard against null plot curve in updateCurveAppearance
When the user toggles "Show Curve" off, updateCurvePresentation runs updateCurveVisibility, which detaches and deletes m_plotCurve, before calling updateCurveAppearance. The override in RimWellFlowRateCurve dereferenced m_plotCurve unconditionally and crashed. Match the null guard already present in RimPlotCurve::updateCurveAppearance. Fixes #14011.
This commit is contained in:
committed by
Magne Sjaastad
parent
90c7bcf743
commit
92107da9ed
@@ -183,6 +183,8 @@ void RimWellFlowRateCurve::updateCurveAppearance()
|
||||
{
|
||||
RimWellLogCurve::updateCurveAppearance();
|
||||
|
||||
if ( !m_plotCurve ) return;
|
||||
|
||||
bool isLastCurveInGroup = false;
|
||||
{
|
||||
auto wellLogTrack = firstAncestorOrThisOfTypeAsserted<RimWellLogTrack>();
|
||||
|
||||
Reference in New Issue
Block a user