From: apo Date: Wed, 12 Sep 2007 10:16:10 +0000 (+0000) Subject: Fix for Bug NPAL16814 X-Git-Tag: T_24092007~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=de95aae420d357e61d5743125dccae66ad3f42ef;p=modules%2Fgui.git Fix for Bug NPAL16814 SIGSEGV on animation when field name is long --- 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;