From 242316e89def9c12bf744cf676f1bbd8dc13a1c9 Mon Sep 17 00:00:00 2001 From: supermerill Date: Wed, 16 Mar 2022 17:05:05 +0100 Subject: To avoid a crash when the config isn't correct, add a substitution. --- src/libslic3r/Config.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libslic3r/Config.hpp') diff --git a/src/libslic3r/Config.hpp b/src/libslic3r/Config.hpp index e2506060e..1feace866 100644 --- a/src/libslic3r/Config.hpp +++ b/src/libslic3r/Config.hpp @@ -281,6 +281,8 @@ struct ConfigSubstitution { const ConfigOptionDef *opt_def { nullptr }; std::string old_value; ConfigOptionUniquePtr new_value; + ConfigSubstitution() = default; + ConfigSubstitution(const ConfigOptionDef* def, std::string old, ConfigOptionUniquePtr&& new_v) : opt_def(def), old_value(old), new_value(std::move(new_v)) {} }; using ConfigSubstitutions = std::vector; -- cgit v1.2.3