From 986103be1dbb1cd4a91d2940d6f198e9a7c338ad Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 1 Oct 2018 11:07:31 +0200 Subject: [PATCH] Fixed crashes caused by the preceding commit. --- xs/src/libslic3r/PrintConfig.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp index a5418f0a99..decbc78338 100644 --- a/xs/src/libslic3r/PrintConfig.cpp +++ b/xs/src/libslic3r/PrintConfig.cpp @@ -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 n_removed_keys = 0; - for (const auto &kvp : this->options) { - const std::string &key = kvp.first; + for (const std::string &key : this->keys()) { if (! default_config.has(key)) { if (removed_keys_message.empty()) removed_keys_message = key;