未验证 提交 9f7b56e9 编写于 作者: A alexey-milovidov 提交者: GitHub

Update SettingsConstraints.cpp

上级 06fb37dd
......@@ -224,9 +224,10 @@ void SettingsConstraints::setProfile(const String & profile_name, const Poco::Ut
for (const std::string & key : config_keys)
{
if (key == "profile" || key.find("profile[") == 0) /// Inheritance of profiles from the current one.
if (key == "profile" || 0 == key.compare(0, strlen("profile["), "profile[")) /// Inheritance of profiles from the current one.
setProfile(config.getString(elem + "." + key), config);
else continue;
else
continue;
}
String path_to_constraints = "profiles." + profile_name + ".constraints";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册