From: dmv Date: Fri, 24 Jul 2009 06:21:53 +0000 (+0000) Subject: IPAL21267 SIGSEGV on Show Mesh in VTK viewer in GEOM module. Regress. X-Git-Tag: V5_1_3rc1~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32f2ca4bb8d8cb198e0874db5d0e6506c9bbf22b;p=modules%2Fgeom.git IPAL21267 SIGSEGV on Show Mesh in VTK viewer in GEOM module. Regress. --- diff --git a/src/GEOMGUI/GEOMGUI_Selection.cxx b/src/GEOMGUI/GEOMGUI_Selection.cxx index 8969e8b4f..1cff7b460 100644 --- a/src/GEOMGUI/GEOMGUI_Selection.cxx +++ b/src/GEOMGUI/GEOMGUI_Selection.cxx @@ -209,7 +209,8 @@ bool GEOMGUI_Selection::isVectorsMode( const int index ) const vtkActor* actor = lst->GetNextActor(); if ( actor ) { GEOM_Actor* aGeomActor = GEOM_Actor::SafeDownCast(actor); - ret = aGeomActor->GetVectorMode(); + if ( aGeomActor ) + ret = aGeomActor->GetVectorMode(); } } }