diff --git a/openhtmltopdf-core/src/main/java/com/openhtmltopdf/render/AbstractOutputDevice.java b/openhtmltopdf-core/src/main/java/com/openhtmltopdf/render/AbstractOutputDevice.java index 485c955d8..522db8995 100644 --- a/openhtmltopdf-core/src/main/java/com/openhtmltopdf/render/AbstractOutputDevice.java +++ b/openhtmltopdf-core/src/main/java/com/openhtmltopdf/render/AbstractOutputDevice.java @@ -231,7 +231,7 @@ private void paintBackground0( return; } - Area borderBounds = new Area(BorderPainter.generateBorderBounds(backgroundBounds, border, false)); + Area borderBounds = new Area(BorderPainter.generateBorderBounds(backgroundBounds, border, true)); Shape oldclip = getClip(); if(oldclip != null) {