Browse Source

Update LongRational.cs

fix issue with 0 Denominator.
pull/2453/head
Tigran 3 years ago
committed by GitHub
parent
commit
9b3d84faf6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Primitives/LongRational.cs

2
src/ImageSharp/Primitives/LongRational.cs

@ -203,7 +203,7 @@ internal readonly struct LongRational : IEquatable<LongRational>
if (this.Numerator == 0)
{
return new LongRational(0, 0);
return new LongRational(0, 1);
}
if (this.Numerator == this.Denominator)

Loading…
Cancel
Save