Fixing repr for App/Document and Gui/Document

This commit is contained in:
Steven James
2025-10-01 13:57:06 -04:00
parent b08a0f87d6
commit 9ff4a40bc2
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ PyObject* DocumentPy::removeProperty(PyObject* args)
std::string DocumentPy::representation() const
{
std::stringstream str;
str << "<Document object at " << getDocumentPtr() << ">";
str << "<Document '" << getDocumentPtr()->getName() << "' (" << getDocumentPtr()->Label.getValue() << ") >";
return str.str();
}

View File

@@ -49,7 +49,7 @@ using namespace Gui;
std::string DocumentPy::representation() const
{
std::stringstream str;
str << "<GUI Document object at " << getDocumentPtr() << ">";
str << "<GUI Document object for " << getDocumentPtr()->getDocument()->getName() << ">";
return str.str();
}