]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL54679: TC-9.5.0: Polyherdon preview - SIGSEGV
authoreap <eap@opencascade.com>
Mon, 25 May 2020 11:48:53 +0000 (14:48 +0300)
committereap <eap@opencascade.com>
Mon, 25 May 2020 11:48:53 +0000 (14:48 +0300)
src/VTKViewer/VTKViewer_ConvexTool.cxx

index 159a782bbdf00af7ec95e5dbba7df3952dce99ab..e8cd08c572a4680782520f36fd2e7f8ba5e0d420 100644 (file)
@@ -107,8 +107,9 @@ VTKViewer_Triangulator
   myPoints->Modified(); // the VTK bug
 
   vtkIdType aNumPts;
-  vtkIdType const *tmp(myPointIds);
+  vtkIdType const *tmp;
   theInput->GetCellPoints(theCellId, aNumPts, tmp);
+  myPointIds = const_cast<vtkIdType*>( tmp );
   if ( aNumPts > 0 ) {
     double anAbsoluteCoord[3];
     myPoints->SetNumberOfPoints(aNumPts);