From 9a9113d3f7c045b30bf73654143e919152555694 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Fri, 20 Jan 2023 10:45:59 +0800 Subject: [PATCH] FIX: fix a crash issue when setting spiral mode while wipe_tower disabled wrong type used by boost::any_cast Change-Id: Ic902c5775bc3cf1f22cb934c53b3ff4afa190e9f --- src/slic3r/GUI/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index ddb1f73659..e74ed65a84 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1402,7 +1402,7 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value) // reload scene to update timelapse wipe tower if (opt_key == "timelapse_type") { bool wipe_tower_enabled = m_config->option("enable_prime_tower")->value; - if (!wipe_tower_enabled && boost::any_cast(value) == int(TimelapseType::tlSmooth)) { + if (!wipe_tower_enabled && boost::any_cast(value) == TimelapseType::tlSmooth) { MessageDialog dlg(wxGetApp().plater(), _L("Prime tower is required for smooth timelapse. There may be flaws on the model without prime tower. Do you want to enable prime tower?"), _L("Warning"), wxICON_WARNING | wxYES | wxNO); if (dlg.ShowModal() == wxID_YES) {