From 94838bcd7f221a41f3d7cf503d2e40cc25570999 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 25 May 2020 14:48:53 +0300 Subject: [PATCH] IPAL54679: TC-9.5.0: Polyherdon preview - SIGSEGV --- src/VTKViewer/VTKViewer_ConvexTool.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VTKViewer/VTKViewer_ConvexTool.cxx b/src/VTKViewer/VTKViewer_ConvexTool.cxx index 159a782bb..e8cd08c57 100644 --- a/src/VTKViewer/VTKViewer_ConvexTool.cxx +++ b/src/VTKViewer/VTKViewer_ConvexTool.cxx @@ -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( tmp ); if ( aNumPts > 0 ) { double anAbsoluteCoord[3]; myPoints->SetNumberOfPoints(aNumPts); -- 2.39.2