From a56625986113ee33203596c00344a1a912b5cb2f Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 18 Sep 2008 11:43:42 +0000 Subject: [PATCH] Fix for bug PAL20022 (Crash of application on Close without saving operation). --- src/SVTK/SVTK_GenericRenderWindowInteractor.cxx | 2 +- src/SVTK/SVTK_GenericRenderWindowInteractor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_GenericRenderWindowInteractor.cxx b/src/SVTK/SVTK_GenericRenderWindowInteractor.cxx index ecb406b1b..4c020695f 100644 --- a/src/SVTK/SVTK_GenericRenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_GenericRenderWindowInteractor.cxx @@ -133,7 +133,7 @@ SVTK_Selector* SVTK_GenericRenderWindowInteractor ::GetSelector() { - return mySelector.GetPointer(); + return mySelector; } /*! diff --git a/src/SVTK/SVTK_GenericRenderWindowInteractor.h b/src/SVTK/SVTK_GenericRenderWindowInteractor.h index ff5b6cb71..0f46693e1 100644 --- a/src/SVTK/SVTK_GenericRenderWindowInteractor.h +++ b/src/SVTK/SVTK_GenericRenderWindowInteractor.h @@ -122,7 +122,7 @@ class SVTK_EXPORT SVTK_GenericRenderWindowInteractor: public QVTK_GenericRenderW SVTK_GenericRenderWindowInteractor(); ~SVTK_GenericRenderWindowInteractor(); - vtkSmartPointer mySelector; //!< Keeps a pointer to SVTK_Selector + SVTK_Selector* mySelector; //!< Keeps a pointer to SVTK_Selector QWidget* myRenderWidget; //!< Keeps a pointer to QWidget, where vtkRenderWindow maps to. }; -- 2.39.2