From 32f2ca4bb8d8cb198e0874db5d0e6506c9bbf22b Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 24 Jul 2009 06:21:53 +0000 Subject: [PATCH] IPAL21267 SIGSEGV on Show Mesh in VTK viewer in GEOM module. Regress. --- src/GEOMGUI/GEOMGUI_Selection.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } } } -- 2.39.2