diff --git a/src/App/DocumentPyImp.cpp b/src/App/DocumentPyImp.cpp index ca119fecde..cd1ace8152 100644 --- a/src/App/DocumentPyImp.cpp +++ b/src/App/DocumentPyImp.cpp @@ -116,7 +116,7 @@ PyObject* DocumentPy::removeProperty(PyObject* args) std::string DocumentPy::representation() const { std::stringstream str; - str << ""; + str << "getName() << "' (" << getDocumentPtr()->Label.getValue() << ") >"; return str.str(); } diff --git a/src/Gui/DocumentPyImp.cpp b/src/Gui/DocumentPyImp.cpp index 7f20f09710..c57aeeeb5b 100644 --- a/src/Gui/DocumentPyImp.cpp +++ b/src/Gui/DocumentPyImp.cpp @@ -49,7 +49,7 @@ using namespace Gui; std::string DocumentPy::representation() const { std::stringstream str; - str << ""; + str << "getDocument()->getName() << ">"; return str.str(); }