You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2014/09/20 16:09:31 UTC
svn commit: r1626445 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java
Author: lehmi
Date: Sat Sep 20 14:09:30 2014
New Revision: 1626445
URL: http://svn.apache.org/r1626445
Log:
PDFBOX-2371: fixed allPagesOverlay as proposed by Laurent Yaish
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java?rev=1626445&r1=1626444&r2=1626445&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java Sat Sep 20 14:09:30 2014
@@ -379,7 +379,7 @@ public class Overlay
}
else if (useAllOverlayPages)
{
- int usePageNum = pageNumber % numberOfOverlayPages;
+ int usePageNum = (pageNumber - 1) % numberOfOverlayPages;
layoutPage = specificPageOverlayPage.get(usePageNum);
}
if (layoutPage != null)