fix: error on unknown unset setting, rather than warn (CURA-3372)

this als oremoves a const_cast :)
Esse commit está contido em:
Tim Kuipers
2017-02-15 11:58:50 +01:00
commit 60cebc86eb
+2 -2
Ver Arquivo
@@ -106,8 +106,8 @@ std::string SettingsBase::getSettingString(std::string key) const
return parent->getSettingString(key);
}
const_cast<SettingsBase&>(*this).setting_values[key] = "";
cura::logWarning("Unregistered setting %s\n", key.c_str());
cura::logError("Trying to retrieve unregistered setting with no value given: '%s'\n", key.c_str());
std::exit(-1);
return "";
}