From ff378668baae3570e9d8070aa9eb339bdd5a6aba Mon Sep 17 00:00:00 2001 From: angusj Date: Tue, 14 May 2024 22:01:51 +1000 Subject: [PATCH] clipper.export.h - fixed bug in previous commit (#836) --- CPP/Clipper2Lib/include/clipper2/clipper.export.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CPP/Clipper2Lib/include/clipper2/clipper.export.h b/CPP/Clipper2Lib/include/clipper2/clipper.export.h index 6bb71bab..53a44536 100644 --- a/CPP/Clipper2Lib/include/clipper2/clipper.export.h +++ b/CPP/Clipper2Lib/include/clipper2/clipper.export.h @@ -281,11 +281,11 @@ static Path ConvertCPath(T* path) T* v = path; size_t cnt = static_cast(*v); v += 2; // skip 0 value - path.reserve(cnt); + result.reserve(cnt); for (size_t j = 0; j < cnt; ++j) { T x = *v++, y = *v++; - path.push_back(Point(x, y)); + result.push_back(Point(x, y)); } return result; }