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.
This commit is contained in:
Abdullah Tahiri
2023-11-28 14:15:57 +01:00
committed by abdullahtahiriyo
parent ee7f0911ef
commit 14393bf20f

View File

@@ -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();
}