From 14393bf20fbbc195a90195e983a126502e7a08c6 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 28 Nov 2023 14:15:57 +0100 Subject: [PATCH] App: PropertyStandard - make developer warning only for the developer ===================================================================== Issue #11183 - The message is not useful for the user in terms of content. - The user can do nothing about it, but move on. --- src/App/PropertyStandard.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index be966ccc6c..1cfdd6e46a 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -423,8 +423,9 @@ void PropertyEnumeration::Restore(Base::XMLReader &reader) if (val < 0) { // If the enum is empty at this stage do not print a warning - if (_enum.hasEnums()) - Base::Console().Warning("Enumeration index %d is out of range, ignore it\n", val); + if (_enum.hasEnums()) { + Base::Console().DeveloperWarning(std::string("PropertyEnumeration"), "Enumeration index %d is out of range, ignore it\n", val); + } val = getValue(); }