0001071: addObject with four arguments does not return the DocumentObject
This commit is contained in:
parent
73bcc4234c
commit
41da5e95e3
|
@ -147,7 +147,7 @@ PyObject* DocumentPy::addObject(PyObject *args)
|
||||||
pyvp.setAttr("__vobject__", pyftr.getAttr("ViewObject"));
|
pyvp.setAttr("__vobject__", pyftr.getAttr("ViewObject"));
|
||||||
}
|
}
|
||||||
pyftr.getAttr("ViewObject").setAttr("Proxy", pyvp);
|
pyftr.getAttr("ViewObject").setAttr("Proxy", pyvp);
|
||||||
return Py::new_reference_to(Py::None());
|
return Py::new_reference_to(pyftr);
|
||||||
}
|
}
|
||||||
catch (Py::Exception& e) {
|
catch (Py::Exception& e) {
|
||||||
e.clear();
|
e.clear();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user