Fixed issues when loading Odb-projects into ResInsight with no Odb support

This commit is contained in:
Magne Sjaastad 2016-01-11 09:23:09 +01:00
parent 4476e60816
commit cb16f3c322
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ void RivGeoMechVizLogic::scheduleGeometryRegen(RivCellSetEnum geometryType)
this->scheduleRegenOfDirectlyDependentGeometry(geometryType); this->scheduleRegenOfDirectlyDependentGeometry(geometryType);
int frameCount = 0; int frameCount = 0;
if (m_geomechView->geoMechCase()->geoMechData()) if (m_geomechView->geoMechCase() && m_geomechView->geoMechCase()->geoMechData())
{ {
frameCount = m_geomechView->geoMechCase()->geoMechData()->femPartResults()->frameCount(); frameCount = m_geomechView->geoMechCase()->geoMechData()->femPartResults()->frameCount();
} }

View File

@ -785,7 +785,7 @@ bool RimViewController::isRangeFilterMappingApliccable()
if (eclipseView && geomView) if (eclipseView && geomView)
{ {
if (eclipseView->eclipseCase()->reservoirData() && geomView->geoMechCase()->geoMechData()) if (eclipseView->eclipseCase()->reservoirData() && geomView->geoMechCase() && geomView->geoMechCase()->geoMechData())
{ {
RigMainGrid* eclGrid = eclipseView->eclipseCase()->reservoirData()->mainGrid(); RigMainGrid* eclGrid = eclipseView->eclipseCase()->reservoirData()->mainGrid();
RigFemPart* femPart = geomView->geoMechCase()->geoMechData()->femParts()->part(0); RigFemPart* femPart = geomView->geoMechCase()->geoMechData()->femParts()->part(0);