From 858acd1a9c89fad5627a7c505003c05350441bb7 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 4 Jun 2020 16:03:54 +0300 Subject: [PATCH] Fix for #19204 [CEA][Windows] VTK Viewer - Access violation while right clicking --- src/SVTK/SVTK_InteractorStyle.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index de6fc98f9..88d61b8c3 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -1773,7 +1773,9 @@ void SVTK_InteractorStyle::endDrawPolygon() { if ( myPolygonBand ) myPolygonBand->hide(); - delete myPolygonBand; + // RNV fix for : #19204 [CEA][Windows] VTK Viewer - Access violation while right clicking + //delete myPolygonBand; + myPolygonBand->deleteLater(); myPolygonBand = 0; myPolygonPoints.clear(); -- 2.39.2