mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-26 18:31:11 +00:00
FIX: The maximum value is not printed in PA line mode
Jira: 5046 4951 Change-Id: Ic81f9a75ce7f088fe950fdde283ff5c942cd6e83
This commit is contained in:
@@ -941,7 +941,7 @@ void CalibUtils::process_and_store_3mf(Model *model, const DynamicPrintConfig &f
|
||||
if (params.mode == CalibMode::Calib_PA_Line) {
|
||||
double space_y = 3.5;
|
||||
int max_line_nums = int(plate_size[1] - 10) / space_y;
|
||||
int count = std::llround(std::ceil((params.end - params.start) / params.step));
|
||||
int count = std::llround(std::ceil((params.end - params.start) / params.step)) + 1;
|
||||
if (count > max_line_nums) {
|
||||
error_message = _L("Unable to calibrate: maybe because the set calibration value range is too large, or the step is too small");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user