From ce41cad134df372d7e11f4bcd7cee79a7b951d8d Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 24 Aug 2018 09:43:15 -0700 Subject: [PATCH] Fix subbuffer --- src/SixLabors.Shapes/Path.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SixLabors.Shapes/Path.cs b/src/SixLabors.Shapes/Path.cs index b44d8cb..557ccdf 100644 --- a/src/SixLabors.Shapes/Path.cs +++ b/src/SixLabors.Shapes/Path.cs @@ -166,7 +166,7 @@ namespace SixLabors.Shapes /// public int FindIntersections(PointF start, PointF end, PointF[] buffer, int offset) { - return this.InnerPath.FindIntersections(start, end, buffer); + return this.InnerPath.FindIntersections(start, end, buffer.AsSpan(offset)); } ///