From aa96aba89d5991f37edec855e7cb2d226eead83c Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Fri, 4 Aug 2023 16:04:24 +0800 Subject: [PATCH] FIX: display failed when the flow rate is 0 or too large Change-Id: I20af5b0badba63a12129fb571524a152b591d974 --- src/slic3r/GUI/CalibrationWizardSavePage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/CalibrationWizardSavePage.cpp b/src/slic3r/GUI/CalibrationWizardSavePage.cpp index ae0ec10de..aca08a5ba 100644 --- a/src/slic3r/GUI/CalibrationWizardSavePage.cpp +++ b/src/slic3r/GUI/CalibrationWizardSavePage.cpp @@ -7,6 +7,8 @@ namespace Slic3r { namespace GUI { #define CALIBRATION_SAVE_INPUT_SIZE wxSize(FromDIP(240), FromDIP(24)) +#define FLOW_RATE_MAX_VALUE 1.15 + static wxString get_default_name(wxString filament_name, CalibMode mode){ PresetBundle* preset_bundle = wxGetApp().preset_bundle; for (auto it = preset_bundle->filaments.begin(); it != preset_bundle->filaments.end(); it++) { @@ -945,7 +947,7 @@ void CalibrationFlowX1SavePage::sync_cali_result(const std::vector FLOW_RATE_MAX_VALUE) { result_failed = true; part_failed = true; }