]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Issue 0001198: External 20620 regression: Crash on activation of post-processing...
authorouv <ouv@opencascade.com>
Fri, 27 Jul 2012 08:31:01 +0000 (08:31 +0000)
committerouv <ouv@opencascade.com>
Fri, 27 Jul 2012 08:31:01 +0000 (08:31 +0000)
src/VTKViewer/VTKViewer_Actor.cxx

index 0e442a1c39ddc2660af70a0c5b5f6f811bbf2cab..935f26efacf9d2dd415f17c4fd8695c34be34773 100755 (executable)
@@ -439,7 +439,9 @@ vtkFloatingPointType*
 VTKViewer_Actor
 ::GetNodeCoord(int theObjID)
 {
-  return GetInput()->GetPoint(theObjID);
+  if( theObjID >= 0 )
+    return GetInput()->GetPoint(theObjID);
+  return 0;
 }
 
 /*!
@@ -449,7 +451,9 @@ vtkCell*
 VTKViewer_Actor
 ::GetElemCell(int theObjID)
 {
-  return GetInput()->GetCell(theObjID);
+  if( theObjID >= 0 )
+    return GetInput()->GetCell(theObjID);
+  return 0;
 }
 
 /*!