From e7ee5516a2e05b9a1c6a7aaae5dc4eeca4ce4e45 Mon Sep 17 00:00:00 2001 From: supermerill Date: Sun, 6 Sep 2020 23:45:27 +0200 Subject: [PATCH] #222 crash fix when thumbnails define with no values. --- src/libslic3r/PrintConfig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 7099c9aeb..8d0333a6e 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -4488,6 +4488,9 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va float v = boost::lexical_cast(value); if (v > 0) value = boost::lexical_cast(-v); + } else if (opt_key == "thumbnails") { + if (value.empty()) + value = "0x0,0x0"; } else if (opt_key == "z_steps_per_mm") { opt_key = "z_step"; float v = boost::lexical_cast(value);