From 4db7b363034e9562097fbefe056323012bc7cf30 Mon Sep 17 00:00:00 2001 From: Prokhorov Kirill Date: Fri, 3 Oct 2025 23:14:23 +0300 Subject: [PATCH] Fix bug 77215 --- DesktopEditor/graphics/BooleanOperations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DesktopEditor/graphics/BooleanOperations.cpp b/DesktopEditor/graphics/BooleanOperations.cpp index 2786733264..8f5bc96ce1 100644 --- a/DesktopEditor/graphics/BooleanOperations.cpp +++ b/DesktopEditor/graphics/BooleanOperations.cpp @@ -1422,7 +1422,7 @@ void CBooleanOperations::CreateNewPath(const std::vector>& adjM break; auto add_seg = [&](int x, int prev_x) { - for (size_t j = adjMatr[x].size() - 1; j >= 0; j--) + for (int j = adjMatr[x].size() - 1; j >= 0; j--) { int ver = adjMatr[x][j]; if (seg_visited[ver] || ver == prev_x) @@ -1517,7 +1517,7 @@ void CBooleanOperations::CreateNewPath(const std::vector>& adjM return j; } } - x = x + 1; + x = (x >= Curves1.size() - 1) ? 0 : x + 1; prev_x = -1; if (Curves1[x].Segment2.IsCurve) Result.CurveTo(Curves1[x].Segment2.HI.X + Curves1[x].Segment2.P.X, Curves1[x].Segment2.HI.Y + Curves1[x].Segment2.P.Y,