Tigran
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/ImageSharp/Primitives/Rational.cs
|
|
@ -74,6 +74,11 @@ public readonly struct Rational : IEquatable<Rational> |
|
|
|
|
|
|
|
|
this.Numerator = (uint)rational.Numerator; |
|
|
this.Numerator = (uint)rational.Numerator; |
|
|
this.Denominator = (uint)rational.Denominator; |
|
|
this.Denominator = (uint)rational.Denominator; |
|
|
|
|
|
|
|
|
|
|
|
if(this.Numerator == 0 && this.Denominator == 0) |
|
|
|
|
|
{ |
|
|
|
|
|
this.Denominator = 1; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
|