Proper calculation for warning of overfull box.

This commit is contained in:
Dianne Skoll
2022-03-01 16:12:55 -05:00
parent 221e2554a9
commit a9162f1472

View File

@@ -637,7 +637,7 @@ sub draw_day
$so_far += $h2;
}
if ($height) {
if ($entry_height > $height) {
if ($entry_height + 2 * $settings->{border_size} > $height) {
print STDERR "WARNING: overfull box at $day " . $self->{monthname} . ' ' . $self->{year} . "\n";
$entry_height = $height;
}