Fix of install wizard: Escape ampersands in printer models.
This commit is contained in:
parent
b95f9897b8
commit
f904752ba7
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue