From 49ff846bdd4f55628698af42a518de8833284f1f Mon Sep 17 00:00:00 2001 From: Peter Peterson Date: Fri, 7 Feb 2014 11:45:05 -0500 Subject: [PATCH] Re #8943. Changing cast so non-IDataItem things can be exposed. --- .../kernel/Registry/TypedPropertyValueHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/PythonInterface/inc/MantidPythonInterface/kernel/Registry/TypedPropertyValueHandler.h b/Code/Mantid/Framework/PythonInterface/inc/MantidPythonInterface/kernel/Registry/TypedPropertyValueHandler.h index ed177aca1ceb..23c8a904a970 100644 --- a/Code/Mantid/Framework/PythonInterface/inc/MantidPythonInterface/kernel/Registry/TypedPropertyValueHandler.h +++ b/Code/Mantid/Framework/PythonInterface/inc/MantidPythonInterface/kernel/Registry/TypedPropertyValueHandler.h @@ -119,7 +119,7 @@ namespace Mantid // If we can extract a weak pointer then we must construct the shared pointer // from the weak pointer itself to ensure the new shared_ptr has the correct // use count - sharedItem = boost::static_pointer_cast(weakPtrExtractor().lock()); + sharedItem = boost::dynamic_pointer_cast(weakPtrExtractor().lock()); } else {