From 8e7e9c4bbc226917c328f67f653e42769b36b03e Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Wed, 10 Sep 2025 07:51:59 +0200 Subject: [PATCH] Gui: check for null document name Make the check for null document name more obvious. --- src/Gui/ViewProviderPlane.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/ViewProviderPlane.cpp b/src/Gui/ViewProviderPlane.cpp index b5c8ba7ca9..8ee2da6e55 100644 --- a/src/Gui/ViewProviderPlane.cpp +++ b/src/Gui/ViewProviderPlane.cpp @@ -234,8 +234,7 @@ std::string ViewProviderPlane::getRole() const { // Note: Role property of App::Plane is not set yet when attaching. const char* name = pcObject->getNameInDocument(); - - if (!pcObject->isAttachedToDocument()) { + if (!name) { return ""; }