IPAL21267 SIGSEGV on Show Mesh in VTK viewer in GEOM module. Regress.

This commit is contained in:
dmv 2009-07-24 06:21:53 +00:00
parent 885574f81f
commit 32f2ca4bb8

View File

@ -209,7 +209,8 @@ bool GEOMGUI_Selection::isVectorsMode( const int index ) const
vtkActor* actor = lst->GetNextActor(); vtkActor* actor = lst->GetNextActor();
if ( actor ) { if ( actor ) {
GEOM_Actor* aGeomActor = GEOM_Actor::SafeDownCast(actor); GEOM_Actor* aGeomActor = GEOM_Actor::SafeDownCast(actor);
ret = aGeomActor->GetVectorMode(); if ( aGeomActor )
ret = aGeomActor->GetVectorMode();
} }
} }
} }