]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for #19204 [CEA][Windows] VTK Viewer - Access violation while right clicking
authorrnv <rnv@opencascade.com>
Thu, 4 Jun 2020 13:03:54 +0000 (16:03 +0300)
committerrnv <rnv@opencascade.com>
Thu, 4 Jun 2020 13:03:54 +0000 (16:03 +0300)
src/SVTK/SVTK_InteractorStyle.cxx

index de6fc98f9201bf1e15cdbe783549e20e2f1adcb5..88d61b8c396a5ee9e5ad7c916d7823063a25afca 100644 (file)
@@ -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();