diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2018-04-13 14:43:53 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2018-04-13 14:43:53 +0300 |
commit | abe6e8a783b62fc402aaea783906cb52a6381478 (patch) | |
tree | 08b39fa821879e8316bbcee2f72fe85ba910f792 /xs/src/libslic3r/PrintConfig.hpp | |
parent | 52a3f4a2bbce38aab69dab6a62a943525cf7f699 (diff) |
Bugfix: legacy config options were not properly processed
Diffstat (limited to 'xs/src/libslic3r/PrintConfig.hpp')
-rw-r--r-- | xs/src/libslic3r/PrintConfig.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xs/src/libslic3r/PrintConfig.hpp b/xs/src/libslic3r/PrintConfig.hpp index be64d35bd..967a87310 100644 --- a/xs/src/libslic3r/PrintConfig.hpp +++ b/xs/src/libslic3r/PrintConfig.hpp @@ -154,6 +154,13 @@ public: // Validate the PrintConfig. Returns an empty string on success, otherwise an error message is returned. std::string validate(); + + // Verify whether the opt_key has not been obsoleted or renamed. + // Both opt_key and value may be modified by handle_legacy(). + // If the opt_key is no more valid in this version of Slic3r, opt_key is cleared by handle_legacy(). + // handle_legacy() is called internally by set_deserialize(). + void handle_legacy(t_config_option_key &opt_key, std::string &value) const override + { PrintConfigDef::handle_legacy(opt_key, value); } }; template<typename CONFIG> |