Here's the promised patch.

Also, I just found that this change was done in wxWidgets 3.2.4.
Upstream PR: https://github.com/wxWidgets/wxWidgets/pull/23309

It seems the wxWidgets developers actually recommend to move away from wxArrayString and the like: https://github.com/wxWidgets/wxWidgets/commit/4d62df488b8e421cadfbd8648b813d7494a56153
Index: slic3r-prusa/src/slic3r/GUI/PhysicalPrinterDialog.cpp
===================================================================
--- slic3r-prusa.orig/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ slic3r-prusa/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -462,7 +462,7 @@ void PhysicalPrinterDialog::build_printh
     // Always fill in the "printhost_port" combo box from the config and select it.
     {
         Choice* choice = dynamic_cast<Choice*>(m_optgroup->get_field("printhost_port"));
-        choice->set_values({ m_config->opt_string("printhost_port") });
+        choice->set_values(std::vector<std::string>({ m_config->opt_string("printhost_port") }));
         choice->set_selection();
     }
 
Index: slic3r-prusa/src/slic3r/GUI/Plater.cpp
===================================================================
--- slic3r-prusa.orig/src/slic3r/GUI/Plater.cpp
+++ slic3r-prusa/src/slic3r/GUI/Plater.cpp
@@ -5310,7 +5310,7 @@ void Plater::load_project(const wxString
 
     p->reset();
 
-    if (! load_files({ into_path(filename) }).empty()) {
+    if (! load_files(std::vector<boost::filesystem::path>({ into_path(filename) })).empty()) {
         // At least one file was loaded.
         p->set_project_filename(filename);
         // Save the names of active presets and project specific config into ProjectDirtyStateManager.

Reply via email to