From: ouv Date: Fri, 27 Jul 2012 08:31:01 +0000 (+0000) Subject: Issue 0001198: External 20620 regression: Crash on activation of post-processing... X-Git-Tag: CTH_1_8_0~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd7cb4c7cdcbd760595e617506b7f6de2b9fec99;p=modules%2Fgui.git Issue 0001198: External 20620 regression: Crash on activation of post-processing mode --- diff --git a/src/VTKViewer/VTKViewer_Actor.cxx b/src/VTKViewer/VTKViewer_Actor.cxx index 0e442a1c3..935f26efa 100755 --- a/src/VTKViewer/VTKViewer_Actor.cxx +++ b/src/VTKViewer/VTKViewer_Actor.cxx @@ -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; } /*!