From: eap Date: Mon, 25 May 2020 11:48:53 +0000 (+0300) Subject: IPAL54679: TC-9.5.0: Polyherdon preview - SIGSEGV X-Git-Tag: V9_5_0rc1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=94838bcd7f221a41f3d7cf503d2e40cc25570999;p=modules%2Fgui.git IPAL54679: TC-9.5.0: Polyherdon preview - SIGSEGV --- 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);