0001071: addObject with four arguments does not return the DocumentObject

This commit is contained in:
wmayer 2013-03-28 21:33:39 +01:00
parent 73bcc4234c
commit 41da5e95e3

View File

@ -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();