Skip to content

Commit

Permalink
GUI: Fix calls to PrintingTaskPanel::show_profile_info (#2219)
Browse files Browse the repository at this point in the history
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…
  • Loading branch information
mia-0 authored Sep 25, 2023
1 parent ca534b5 commit 3b864e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/CalibrationWizardCaliPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -453,4 +453,4 @@ float CalibrationCaliPage::get_selected_calibration_nozzle_dia(MachineObject* ob
return 0.4;
}

}}
}}
2 changes: 1 addition & 1 deletion src/slic3r/GUI/StatusPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b864e5

Please sign in to comment.