From 930e21dfba074cbec1ac0867f6767d29f9e26ddf Mon Sep 17 00:00:00 2001 From: ptv Date: Thu, 1 Dec 2005 12:11:20 +0000 Subject: [PATCH] disable optimisation for ::createActions() to avoid exception in release mode on creation of new VTK viewer. --- src/SVTK/SVTK_ViewWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 14e36c30d..fe9fb7cc9 100755 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -204,6 +204,7 @@ SVTK_ViewWindow } //---------------------------------------------------------------------------- +//#pragma optimize( "", off ) void SVTK_ViewWindow ::createActions() @@ -314,6 +315,7 @@ SVTK_ViewWindow connect(aAction, SIGNAL(activated()), this, SLOT(onViewTrihedron())); myActionsMap[ ViewTrihedronId ] = aAction; } +#pragma optimize( "", on ) //---------------------------------------------------------------------------- void -- 2.39.2