From f8f85f00790b0d37d451c73352eecf772f995b8e Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sat, 8 Dec 2018 07:19:00 -0500 Subject: [PATCH] Improve "links go out of scope" message --- src/App/DocumentObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index 34f3675632..df4b5cee6f 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -77,12 +77,13 @@ DocumentObject::~DocumentObject(void) App::DocumentObjectExecReturn *DocumentObject::recompute(void) { //check if the links are valid before making the recompute - if(!GeoFeatureGroupExtension::areLinksValid(this)) + if(!GeoFeatureGroupExtension::areLinksValid(this)) { #if 1 - Base::Console().Warning("%s: Links go out of the allowed scope\n", getTypeId().getName()); + Base::Console().Warning("%s / %s: Links go out of the allowed scope\n", getTypeId().getName(), getNameInDocument()); #else return new App::DocumentObjectExecReturn("Links go out of the allowed scope", this); #endif + } // set/unset the execution bit Base::ObjectStatusLocker exe(App::Recompute, this);