From f0616b07368adbe77010a2ba3a5575d51f3b1fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Tue, 1 Dec 2020 14:28:27 +0100 Subject: [PATCH] Fixed return value of liang_barsky_line_clipping --- src/libslic3r/Geometry.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Geometry.hpp b/src/libslic3r/Geometry.hpp index 92333f203..f8d3b0a5c 100644 --- a/src/libslic3r/Geometry.hpp +++ b/src/libslic3r/Geometry.hpp @@ -266,8 +266,9 @@ inline bool liang_barsky_line_clipping( // Clipped successfully. x1 = x0 + interval.second * v; x0 += interval.first * v; + return true; } - return true; + return false; } // Based on Liang-Barsky function by Daniel White @ http://www.skytopia.com/project/articles/compsci/clipping.html