pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1679004 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java
Date Tue, 12 May 2015 17:03:13 GMT
Author: tilman
Date: Tue May 12 17:03:13 2015
New Revision: 1679004

URL: http://svn.apache.org/r1679004
Log:
PDFBOX-2792, PDFBOX-2793: fix regression from rev 1634252 - PDPageDestination.getPageNumber()
returns zero-based result, so don't substract 1 when passing result to PDDocument.getPage()

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java?rev=1679004&r1=1679003&r2=1679004&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java
Tue May 12 17:03:13 2015
@@ -287,7 +287,7 @@ public final class PDOutlineItem extends
             int pageNumber = pageDestination.getPageNumber();
             if( pageNumber != -1 )
             {
-                page = doc.getPage( pageNumber - 1 );
+                page = doc.getPage(pageNumber);
             }
         }
 



Mime
View raw message