Skip to content

Prevent internal path throwing index out of range for an empty path - #49

Merged
tocsoft merged 2 commits into
masterfrom
sw/zero-length-polygons
Jun 3, 2020
Merged

tocsoft merged 2 commits into
masterfrom
sw/zero-length-polygons

Conversation

@tocsoft

@tocsoft tocsoft commented Jun 1, 2020

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

This adds logic to InternalPath to cope with paths with zero length.

Resolves #48
Resolves #47

@tocsoft
tocsoft requested a review from a team June 1, 2020 12:12
Comment thread src/ImageSharp.Drawing/Shapes/InternalPath.cs
@tocsoft
tocsoft merged commit e85396a into master Jun 3, 2020
@tocsoft
tocsoft deleted the sw/zero-length-polygons branch June 3, 2020 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants