From 781ced56761617a4ef0f5af0b1678d1f334036e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lehmk=C3=BChler?= Date: Tue, 15 Oct 2024 16:55:02 +0000 Subject: [PATCH] PDFBOX-4718: revert some of the optimization git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921342 13f79535-47bb-0310-9956-ffa450edef68 --- .../pdfbox/pdmodel/graphics/state/PDGraphicsState.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java index b20de51f1bb..3897c0362ac 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java @@ -642,12 +642,6 @@ public Area getCurrentClippingPath() for (int i = 0; i < clippingPaths.size(); i++) { Area nextArea = new Area(clippingPaths.get(i)); - // skip rectangular areas as they were already taken into account when calculating the overall bounding box - if (nextArea.isRectangular()) - { - nextArea.reset(); - continue; - } clippingArea.intersect(nextArea); nextArea.reset(); }