mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix of install wizard: Escape ampersands in printer models.
This commit is contained in:
@@ -2270,8 +2270,10 @@ bool ConfigWizard::priv::check_and_install_missing_materials(Technology technolo
|
|||||||
const auto printer_model_list = [](const std::set<const VendorProfile::PrinterModel*> &printer_models) -> wxString {
|
const auto printer_model_list = [](const std::set<const VendorProfile::PrinterModel*> &printer_models) -> wxString {
|
||||||
wxString out;
|
wxString out;
|
||||||
for (const VendorProfile::PrinterModel *printer_model : printer_models) {
|
for (const VendorProfile::PrinterModel *printer_model : printer_models) {
|
||||||
|
wxString name = from_u8(printer_model->name);
|
||||||
|
name.Replace("&", "&&", true);
|
||||||
out += "\t\t";
|
out += "\t\t";
|
||||||
out += from_u8(printer_model->name);
|
out += name;
|
||||||
out += "\n";
|
out += "\n";
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|||||||
Reference in New Issue
Block a user