You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/05/06 19:34:56 UTC

svn commit: r1678047 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/edit/PDPageContentStream.java

Author: tilman
Date: Wed May  6 17:34:55 2015
New Revision: 1678047

URL: http://svn.apache.org/r1678047
Log:
PDFBOX-2788: use findResources instead of getResources to avoid ignoring of global resources

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/edit/PDPageContentStream.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/edit/PDPageContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/edit/PDPageContentStream.java?rev=1678047&r1=1678046&r2=1678047&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/edit/PDPageContentStream.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/edit/PDPageContentStream.java Wed May  6 17:34:55 2015
@@ -268,7 +268,7 @@ public class PDPageContentStream impleme
         formatDecimal.setMaximumFractionDigits(10);
         formatDecimal.setGroupingUsed(false);
         // this has to be done here, as the resources will be set to null when reseting the content stream
-        resources = sourcePage.getResources();
+        resources = sourcePage.findResources();
         if (resources == null)
         {
             resources = new PDResources();