From 98caf561ef26c92fcf41b11068b6eab20e9bd2f8 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sat, 11 May 2024 00:21:10 +0800 Subject: [PATCH] fix build error --- src/libslic3r/Arrange.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Arrange.cpp b/src/libslic3r/Arrange.cpp index 6875ed216b..6aeea356a3 100644 --- a/src/libslic3r/Arrange.cpp +++ b/src/libslic3r/Arrange.cpp @@ -1,6 +1,7 @@ #include "Arrange.hpp" #include "Print.hpp" #include "BoundingBox.hpp" +#include "libslic3r.h" #include #include @@ -337,8 +338,8 @@ static double fixed_overfit_topright_sliding(const std::tuple &resu Box pilebb = std::get<1>(result); auto shift = binbb.maxCorner() - pilebb.maxCorner(); - shift.x() = std::max(0, shift.x()); // do not allow left shift - shift.y() = std::max(0, shift.y()); // do not allow bottom shift + shift.x() = std::max((coord_t)0, shift.x()); // do not allow left shift + shift.y() = std::max((coord_t)0, shift.y()); // do not allow bottom shift pilebb.minCorner() += shift; pilebb.maxCorner() += shift;