Index: xfa/src/fxfa/src/app/xfa_ffdoc.cpp |
diff --git a/xfa/src/fxfa/src/app/xfa_ffdoc.cpp b/xfa/src/fxfa/src/app/xfa_ffdoc.cpp |
index 9c686036c0f98561f2a189622fbf71a52144839f..625a34db4bca9aed75391668d29c2aa88ed5a13d 100644 |
--- a/xfa/src/fxfa/src/app/xfa_ffdoc.cpp |
+++ b/xfa/src/fxfa/src/app/xfa_ffdoc.cpp |
@@ -233,15 +233,11 @@ FX_BOOL CXFA_FFDoc::OpenDoc(CPDF_Document* pPDFDoc) |
if (pAcroForm == NULL) { |
return FALSE; |
} |
- CPDF_Object* pElementXFA = pAcroForm->GetElement(FX_BSTRC("XFA")); |
+ CPDF_Object* pElementXFA = pAcroForm->GetElementValue(FX_BSTRC("XFA")); |
if (pElementXFA == NULL) { |
return FALSE; |
} |
FX_INT32 iObjType = pElementXFA->GetType(); |
- if (iObjType == PDFOBJ_REFERENCE) { |
- pElementXFA = pElementXFA->GetDirect(); |
- iObjType = pElementXFA->GetType(); |
- } |
CFX_ArrayTemplate<CPDF_Stream*> xfaStreams; |
if (iObjType == PDFOBJ_ARRAY) { |
CPDF_Array* pXFAArray = (CPDF_Array*)pElementXFA; |