diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 13625748a..f42b3f770 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -2240,7 +2240,7 @@ namespace PresetUtils { { const VendorProfile::PrinterModel *out = nullptr; if (preset.vendor != nullptr) { - auto *printer_model = preset.config.opt("printer_model"); + const auto *printer_model = preset.config.opt("printer_model"); if (printer_model != nullptr && ! printer_model->value.empty()) { auto it = std::find_if(preset.vendor->models.begin(), preset.vendor->models.end(), [printer_model](const VendorProfile::PrinterModel &pm) { return pm.id == printer_model->value; }); if (it != preset.vendor->models.end()) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 0614c4446..187e2737d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -7696,7 +7696,7 @@ PlaterAfterLoadAutoArrange::PlaterAfterLoadAutoArrange() Plater* plater = wxGetApp().plater(); m_enabled = plater->model().objects.empty() && plater->printer_technology() == ptFFF && - plater->fff_print().config().printer_model.value == "XL"; + is_XL_printer(plater->fff_print().config()); } PlaterAfterLoadAutoArrange::~PlaterAfterLoadAutoArrange()