This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-jbig2.git


The following commit(s) were added to refs/heads/master by this push:
     new d56a04f  PDFBOX-6156: improve comment, exclude when src bitmap larger 
than destination
d56a04f is described below

commit d56a04f0b55a136ec557ff6b8f30b356d2fef762
Author: Tilman Hausherr <[email protected]>
AuthorDate: Wed Apr 8 20:37:19 2026 +0200

    PDFBOX-6156: improve comment, exclude when src bitmap larger than 
destination
---
 src/main/java/org/apache/pdfbox/jbig2/image/Bitmaps.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/pdfbox/jbig2/image/Bitmaps.java 
b/src/main/java/org/apache/pdfbox/jbig2/image/Bitmaps.java
index 050a82a..250315d 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/image/Bitmaps.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/image/Bitmaps.java
@@ -569,11 +569,11 @@ public class Bitmaps
         final int toShift = shiftVal2 - padding;
 
         if ((shiftVal1 != 0 || padding != 0) && 
-            !(x1 == 0 && src.getWidth() == dst.getWidth()))
+            !(x1 == 0 && src.getWidth() >= dst.getWidth()))
         {
             // PDFBOX-6156: do it the hard way until the other methods are 
fixed
-            // Test your fix with "bitmap-composite-and-xnor.jbig2" of the 
serenity project
-            // not needed if both have the same size and start at 0
+            // Test your fix with the "bitmap-composite-and-xnor*.jbig2" files 
of the serenity project
+            // not needed if both have the same size (or if src larger) and x 
starts at 0 
             // but needed if start or end not at byte boundary
             blitByPixel(src, dst, x1, y1, combinationOperator);
             return;

Reply via email to