Fix crashes in well log plots

This commit is contained in:
Gaute Lindkvist
2019-09-26 08:42:43 +02:00
parent d9b36a0228
commit 2bcf571efc
2 changed files with 3 additions and 2 deletions

View File

@@ -620,7 +620,7 @@ QList<caf::PdmOptionItemInfo> RimWellLogTrack::calculateValueOptions( const caf:
caf::PdmOptionItemInfo( RegionAnnotationTypeEnum::uiText( RiuPlotAnnotationTool::FORMATION_ANNOTATIONS ),
RiuPlotAnnotationTool::FORMATION_ANNOTATIONS ) );
RimWellBoreStabilityPlot* wellBoreStabilityPlot = nullptr;
this->firstAncestorOrThisOfTypeAsserted( wellBoreStabilityPlot );
this->firstAncestorOrThisOfType( wellBoreStabilityPlot );
if ( wellBoreStabilityPlot )
{
options.push_back(