Skip to content

Commit bc1fd92

Browse files
committed
PDFBOX-6059: avoid ClassCastException
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928233 13f79535-47bb-0310-9956-ffa450edef68
1 parent 14c6f88 commit bc1fd92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDLayoutAttributeObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.apache.pdfbox.cos.COSArray;
2020
import org.apache.pdfbox.cos.COSBase;
2121
import org.apache.pdfbox.cos.COSDictionary;
22+
import org.apache.pdfbox.cos.COSName;
2223
import org.apache.pdfbox.pdmodel.common.PDRectangle;
2324
import org.apache.pdfbox.pdmodel.graphics.color.PDGamma;
2425

@@ -840,8 +841,7 @@ public void setTextAlign(String textIndent)
840841
*/
841842
public PDRectangle getBBox()
842843
{
843-
COSArray array =
844-
(COSArray) this.getCOSObject().getDictionaryObject(BBOX);
844+
COSArray array = this.getCOSObject().getCOSArray(COSName.BBOX);
845845
if (array != null)
846846
{
847847
return new PDRectangle(array);

0 commit comments

Comments
 (0)