From de95aae420d357e61d5743125dccae66ad3f42ef Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 12 Sep 2007 10:16:10 +0000 Subject: [PATCH] Fix for Bug NPAL16814 SIGSEGV on animation when field name is long --- src/VTKViewer/VTKViewer_ConvexTool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VTKViewer/VTKViewer_ConvexTool.cxx b/src/VTKViewer/VTKViewer_ConvexTool.cxx index 6f7831664..1e1f4b09b 100644 --- a/src/VTKViewer/VTKViewer_ConvexTool.cxx +++ b/src/VTKViewer/VTKViewer_ConvexTool.cxx @@ -547,7 +547,7 @@ VTKViewer_OrderedTriangulator int numPts = myCell->GetNumberOfPoints(); if ( numPts > 0 ) { - myTriangulator->InitTriangulation(0.0,1.0, 0.0,1.0, 0.0,1.0, numPts); + myTriangulator->InitTriangulation(0.0, 1.0, 0.0, 1.0, 0.0, 1.0, numPts); vtkFloatingPointType x[3], p[3]; vtkIdType ptId; @@ -624,7 +624,7 @@ VTKViewer_OrderedTriangulator for (int i=0; i<3; i++) { myTriangle->PointIds->SetId(i,cptr[i+1]); - myTriangle->Points->SetPoint(i,myCell->Points->GetPoint(cptr[i+1])); + myTriangle->Points->SetPoint(i,myInput->GetPoints()->GetPoint(cptr[i+1])); } return myTriangle; -- 2.39.2