mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-26 22:55:57 +00:00
Fixed crashes caused by the preceding commit.
This commit is contained in:
@@ -2245,8 +2245,7 @@ std::string DynamicPrintConfig::validate()
|
|||||||
size_t DynamicPrintConfig::remove_keys_not_in(const DynamicPrintConfig &default_config, std::string &removed_keys_message)
|
size_t DynamicPrintConfig::remove_keys_not_in(const DynamicPrintConfig &default_config, std::string &removed_keys_message)
|
||||||
{
|
{
|
||||||
size_t n_removed_keys = 0;
|
size_t n_removed_keys = 0;
|
||||||
for (const auto &kvp : this->options) {
|
for (const std::string &key : this->keys()) {
|
||||||
const std::string &key = kvp.first;
|
|
||||||
if (! default_config.has(key)) {
|
if (! default_config.has(key)) {
|
||||||
if (removed_keys_message.empty())
|
if (removed_keys_message.empty())
|
||||||
removed_keys_message = key;
|
removed_keys_message = key;
|
||||||
|
|||||||
Reference in New Issue
Block a user