]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug NPAL16814
authorapo <apo@opencascade.com>
Wed, 12 Sep 2007 10:16:10 +0000 (10:16 +0000)
committerapo <apo@opencascade.com>
Wed, 12 Sep 2007 10:16:10 +0000 (10:16 +0000)
  SIGSEGV on animation when field name is long

src/VTKViewer/VTKViewer_ConvexTool.cxx

index 6f7831664885a1345762a5de4bf7ecf717c8e577..1e1f4b09bb0524a025ef1a1d36ef163656582556 100644 (file)
@@ -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;