Skip to content

Commit

Permalink
Add possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
101100 committed Aug 10, 2019
1 parent dc9bf93 commit eda97a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected override void OnFrameApply(ImageFrame<TPixel> source, Rectangle source

QuickSort.Sort(buffer.Slice(0, pointsFound));

for (int point = 0; point < pointsFound; point += 2)
for (int point = 0; point < pointsFound && point < buffer.Length - 1; point += 2)
{
// points will be paired up
float scanStart = buffer[point] - minX;
Expand Down

0 comments on commit eda97a9

Please sign in to comment.