diff --git a/rem2pdf/lib/Remind/PDF.pm b/rem2pdf/lib/Remind/PDF.pm index 9b36ea9e..271560e3 100644 --- a/rem2pdf/lib/Remind/PDF.pm +++ b/rem2pdf/lib/Remind/PDF.pm @@ -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; }