mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05:00
StimPlan Model: fix crash when model has been deleted.
This commit is contained in:
1 parent
9fd9e90c61
commit
3bdb57d637
1 file changed
+1
-1
@@ -179,7 +179,7 @@ void RimStimPlanModelCurve::performDataExtraction( bool* isUsingPseudoLength )
|
||||
QString RimStimPlanModelCurve::createCurveAutoName()
|
||||
{
|
||||
QString textWithLineFeed = caf::AppEnum<RiaDefines::CurveProperty>::uiText( m_curveProperty() ).trimmed();
|
||||
if ( m_curveProperty == RiaDefines::CurveProperty::PRESSURE || m_curveProperty == RiaDefines::CurveProperty::STRESS )
|
||||
if ( ( m_curveProperty == RiaDefines::CurveProperty::PRESSURE || m_curveProperty == RiaDefines::CurveProperty::STRESS ) && m_stimPlanModel )
|
||||
{
|
||||
// Append date for pressure
|
||||
QString pressureDate = m_stimPlanModel->pressureDate();
|
||||
|
||||
Reference in new issue
Block a user