From 3b864e562a6b803becf0e439aa81f3eaaba79223 Mon Sep 17 00:00:00 2001 From: mia <652892+mia-0@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:37:25 +0200 Subject: [PATCH] GUI: Fix calls to PrintingTaskPanel::show_profile_info (#2219) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These will not compile on STL builds of wxWidgets. I assume that on the non-STL variants, the first argument is cast to a boolean, which might be a bug… --- src/slic3r/GUI/CalibrationWizardCaliPage.cpp | 4 ++-- src/slic3r/GUI/StatusPanel.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/CalibrationWizardCaliPage.cpp b/src/slic3r/GUI/CalibrationWizardCaliPage.cpp index 23edc25e1d..bd62a66218 100644 --- a/src/slic3r/GUI/CalibrationWizardCaliPage.cpp +++ b/src/slic3r/GUI/CalibrationWizardCaliPage.cpp @@ -349,7 +349,7 @@ void CalibrationCaliPage::update_subtask(MachineObject* obj) m_printing_panel->update_subtask_name(wxString::Format("%s", GUI::from_u8(obj->subtask_name))); if (obj->get_modeltask() && obj->get_modeltask()->design_id > 0) { - m_printing_panel->show_profile_info(wxString::FromUTF8(obj->get_modeltask()->profile_name)); + m_printing_panel->show_profile_info(true, wxString::FromUTF8(obj->get_modeltask()->profile_name)); } else { m_printing_panel->show_profile_info(false); @@ -453,4 +453,4 @@ float CalibrationCaliPage::get_selected_calibration_nozzle_dia(MachineObject* ob return 0.4; } -}} \ No newline at end of file +}} diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 683e651e04..aa6e3ad0a3 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -2626,7 +2626,7 @@ void StatusPanel::update_subtask(MachineObject *obj) m_project_task_panel->update_subtask_name(wxString::Format("%s", GUI::from_u8(obj->subtask_name))); if (obj->get_modeltask() && obj->get_modeltask()->design_id > 0) { - m_project_task_panel->show_profile_info(wxString::FromUTF8(obj->get_modeltask()->profile_name)); + m_project_task_panel->show_profile_info(true, wxString::FromUTF8(obj->get_modeltask()->profile_name)); } else { m_project_task_panel->show_profile_info(false);