missing letters with width less than 1 are now drawn in the visual tests

This commit is contained in:
Eliot Jones
2018-04-17 23:00:16 +01:00
parent 4b66addf6d
commit e5cfc20b30

View File

@@ -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";