Skip to content

Commit

Permalink
fix a crash bug when generating support (#8357)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever authored Feb 9, 2025
1 parent cc92abf commit 107cd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clipper/clipper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class ClipperBase
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];
Expand Down

0 comments on commit 107cd3e

Please sign in to comment.