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 2024/10/09 13:24:45 UTC

svn commit: r1921207 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Author: tilman
Date: Wed Oct  9 13:24:44 2024
New Revision: 1921207

URL: http://svn.apache.org/viewvc?rev=1921207&view=rev
Log:
PDFBOX-5884: Sonar fix

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1921207&r1=1921206&r2=1921207&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Wed Oct  9 13:24:44 2024
@@ -2285,7 +2285,7 @@ public class PageDrawer extends PDFGraph
             else if (base instanceof COSDictionary)
             {
                 // Another OCG
-                PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base);
+                PDPropertyList prop = PDPropertyList.create((COSDictionary) base);
                 boolean isHidden = isHiddenOCG(prop);
                 if (isHidden)
                 {
@@ -2314,7 +2314,7 @@ public class PageDrawer extends PDFGraph
             else if (base instanceof COSDictionary)
             {
                 // Another OCG
-                PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base);
+                PDPropertyList prop = PDPropertyList.create((COSDictionary) base);
                 boolean isHidden = isHiddenOCG(prop);
                 if (!isHidden)
                 {
@@ -2340,7 +2340,7 @@ public class PageDrawer extends PDFGraph
         else if (base instanceof COSDictionary)
         {
             // Another OCG
-            PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base);
+            PDPropertyList prop = PDPropertyList.create((COSDictionary) base);
             return !isHiddenOCG(prop);
         }
         return false;