From 9ff4a40bc246c581e620d7c8a7b1eafa91acc596 Mon Sep 17 00:00:00 2001 From: Steven James Date: Wed, 1 Oct 2025 13:57:06 -0400 Subject: [PATCH] Fixing repr for App/Document and Gui/Document --- src/App/DocumentPyImp.cpp | 2 +- src/Gui/DocumentPyImp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }