From 8aa25c8713eebc86a0d344b4d9804eda370c5523 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 18 Sep 2008 11:42:43 +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 3dffbae50..fa4943202 100644 --- a/src/SVTK/SVTK_GenericRenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_GenericRenderWindowInteractor.cxx @@ -134,7 +134,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 9bb7cbfcd..06c0241e8 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