]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix crash BR_hydro_v_0_3_1
authorvsr <vsr@opencascade.com>
Thu, 21 Nov 2013 05:16:21 +0000 (05:16 +0000)
committervsr <vsr@opencascade.com>
Thu, 21 Nov 2013 05:16:21 +0000 (05:16 +0000)
src/SVTK/SALOME_Actor.cxx

index 6a229199621a2194e0accd14d9d935c029fb2e64..df43a2cf3d5a4a349683376d6f6a79d8e885ab96 100644 (file)
@@ -500,7 +500,7 @@ SALOME_Actor
                SVTK_SelectionEvent* theSelectionEvent,
                bool theIsHighlight)
 {
-  if ( !GetPickable() || !mySelector->IsPreSelectionEnabled() )
+  if ( !GetPickable() || !mySelector || !mySelector->IsPreSelectionEnabled() )
     return false;
       
   vtkRenderer *aRenderer = theInteractorStyle->GetCurrentRenderer();