From cd7cb4c7cdcbd760595e617506b7f6de2b9fec99 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 27 Jul 2012 08:31:01 +0000 Subject: [PATCH] Issue 0001198: External 20620 regression: Crash on activation of post-processing mode --- src/VTKViewer/VTKViewer_Actor.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } /*! -- 2.39.2