Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-10-01 12:07:31 +0300
committerbubnikv <bubnikv@gmail.com>2018-10-01 12:07:31 +0300
commit986103be1dbb1cd4a91d2940d6f198e9a7c338ad (patch)
tree8900c2b3e15ef06adcf1f7e0b2c2d979a4081f02 /xs/src/libslic3r
parentb338eb0ce0e5b88ab57940fc0bca4046660237b1 (diff)
Fixed crashes caused by the preceding commit.
Diffstat (limited to 'xs/src/libslic3r')
-rw-r--r--xs/src/libslic3r/PrintConfig.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp
index a5418f0a9..decbc7833 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;