From 340d076d4bb6ca305c6df1d3ae6bed477f91d2bb Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 28 Jan 2018 00:15:12 +0100 Subject: [PATCH] do not raise exception if link is out of scope, but write a warning --- src/App/DocumentObject.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index f92103c0b0..581d21d417 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -28,6 +28,7 @@ #include #include +#include #include "Document.h" #include "DocumentObject.h" @@ -77,7 +78,11 @@ App::DocumentObjectExecReturn *DocumentObject::recompute(void) { //check if the links are valid before making the recompute if(!GeoFeatureGroupExtension::areLinksValid(this)) +#if 1 + Base::Console().Warning("%s: Links go out of the allowed scope\n", getTypeId().getName()); +#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);