Skip to content

Commit 7f51170

Browse files
committed
Fixed bug in clipper.export.h due to recently changed clip_offset.Execute parameters (#457)
1 parent 037d47c commit 7f51170

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CPP/Clipper2Lib/include/clipper2/clipper.export.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* Author : Angus Johnson *
3-
* Date : 12 February 2023 *
3+
* Date : 22 March 2023 *
44
* Website : http://www.angusj.com *
55
* Copyright : Angus Johnson 2010-2023 *
66
* Purpose : This module exports the Clipper2 Library (ie DLL/so) *
@@ -361,7 +361,8 @@ EXTERN_DLL_EXPORT CPaths64 InflatePaths64(const CPaths64 paths,
361361
ClipperOffset clip_offset( miter_limit,
362362
arc_tolerance, reverse_solution);
363363
clip_offset.AddPaths(pp, JoinType(jointype), EndType(endtype));
364-
Paths64 result = clip_offset.Execute(delta);
364+
Paths64 result;
365+
clip_offset.Execute(delta, result);
365366
return CreateCPaths64(result);
366367
}
367368

@@ -375,7 +376,8 @@ EXTERN_DLL_EXPORT CPathsD InflatePathsD(const CPathsD paths,
375376
ClipperOffset clip_offset(miter_limit, arc_tolerance, reverse_solution);
376377
Paths64 pp = ConvertCPathsD(paths, scale);
377378
clip_offset.AddPaths(pp, JoinType(jointype), EndType(endtype));
378-
Paths64 result = clip_offset.Execute(delta * scale);
379+
Paths64 result;
380+
clip_offset.Execute(delta * scale, result);
379381
return CreateCPathsD(result, 1/scale);
380382
}
381383

0 commit comments

Comments
 (0)