mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Follow suggestion by @BobLd, added 2 more test cases for if we want to
support more lenient page size parsing in the future.
This commit is contained in:
@@ -150,8 +150,8 @@
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is WidthHeight height &&
|
||||
Math.Abs(Width - height.Width) < 1 &&
|
||||
Math.Abs(Height - height.Height) < 1;
|
||||
Math.Round(Width) == Math.Round(height.Width) &&
|
||||
Math.Round(Height) == Math.Round(height.Height);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
|
||||
Reference in New Issue
Block a user