mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 03:34:52 +08:00
missing letters with width less than 1 are now drawn in the visual tests
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
foreach (var word in page.Letters)
|
||||
{
|
||||
graphics.DrawRectangle(redPen, new Rectangle((int)word.Rectangle.Left,
|
||||
792 - (int)word.Rectangle.Top, (int)word.Rectangle.Width, (int)word.Rectangle.Height));
|
||||
792 - (int)word.Rectangle.Top, (int)Math.Max(1, word.Rectangle.Width), (int)word.Rectangle.Height));
|
||||
}
|
||||
|
||||
var imageName = $"{file}.jpg";
|
||||
|
Reference in New Issue
Block a user