Skip to content

Commit a95d910

Browse files
Fix #244
1 parent da77460 commit a95d910

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Six Labors.
2+
// Licensed under the Six Labors Split License.
3+
4+
using System.Numerics;
5+
6+
namespace SixLabors.ImageSharp.Drawing.Tests.Issues;
7+
8+
public class Issue_244
9+
{
10+
[Fact]
11+
public void DoesNotHang()
12+
{
13+
PathBuilder pathBuilder = new();
14+
Matrix3x2 transform = Matrix3x2.CreateRotation(-0.04433158f, new Vector2(948, 640));
15+
pathBuilder.SetTransform(transform);
16+
pathBuilder.AddQuadraticBezier(new PointF(-2147483648, 677), new PointF(-2147483648, 675), new PointF(-2147483648, 675));
17+
IPath path = pathBuilder.Build();
18+
19+
IPath outline = path.GenerateOutline(2);
20+
21+
Assert.NotEqual(Rectangle.Empty, outline.Bounds);
22+
}
23+
}

0 commit comments

Comments
 (0)