From 107cd3edb05ef7327d6925aa352082f1168473e0 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sun, 9 Feb 2025 19:59:30 +0800 Subject: [PATCH] fix a crash bug when generating support (#8357) --- src/clipper/clipper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clipper/clipper.hpp b/src/clipper/clipper.hpp index aee1a02f8f..359ce32819 100644 --- a/src/clipper/clipper.hpp +++ b/src/clipper/clipper.hpp @@ -337,7 +337,7 @@ public: TEdge *p_edge = edges.data(); i = 0; for (const Path &pg : paths_provider) { - if (num_edges[i]) { + if (num_edges[i] && !pg.empty()) { bool res = AddPathInternal(pg, num_edges[i] - 1, PolyTyp, Closed, p_edge); if (res) { p_edge += num_edges[i];