From 41da5e95e3fb48e318a60f19dc7af01ae4a9a622 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 28 Mar 2013 21:33:39 +0100 Subject: [PATCH] 0001071: addObject with four arguments does not return the DocumentObject --- src/App/DocumentPyImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/DocumentPyImp.cpp b/src/App/DocumentPyImp.cpp index c24be3cc4c..cc9c40e621 100644 --- a/src/App/DocumentPyImp.cpp +++ b/src/App/DocumentPyImp.cpp @@ -147,7 +147,7 @@ PyObject* DocumentPy::addObject(PyObject *args) pyvp.setAttr("__vobject__", pyftr.getAttr("ViewObject")); } pyftr.getAttr("ViewObject").setAttr("Proxy", pyvp); - return Py::new_reference_to(Py::None()); + return Py::new_reference_to(pyftr); } catch (Py::Exception& e) { e.clear();