mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
StimPlan Model: fix crash when model has been deleted.
This commit is contained in:
parent
9fd9e90c61
commit
3bdb57d637
@ -179,7 +179,7 @@ void RimStimPlanModelCurve::performDataExtraction( bool* isUsingPseudoLength )
|
|||||||
QString RimStimPlanModelCurve::createCurveAutoName()
|
QString RimStimPlanModelCurve::createCurveAutoName()
|
||||||
{
|
{
|
||||||
QString textWithLineFeed = caf::AppEnum<RiaDefines::CurveProperty>::uiText( m_curveProperty() ).trimmed();
|
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
|
// Append date for pressure
|
||||||
QString pressureDate = m_stimPlanModel->pressureDate();
|
QString pressureDate = m_stimPlanModel->pressureDate();
|
||||||
|
Loading…
Reference in New Issue
Block a user