summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_binddata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_binddata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_binddata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_binddata.cpp b/xfa/fxfa/parser/cxfa_binddata.cpp
index 62146e3419..7a7e2eef86 100644
--- a/xfa/fxfa/parser/cxfa_binddata.cpp
+++ b/xfa/fxfa/parser/cxfa_binddata.cpp
@@ -7,12 +7,12 @@
#include "xfa/fxfa/parser/cxfa_binddata.h"
#include "xfa/fxfa/parser/cxfa_node.h"
+#include "xfa/fxfa/parser/cxfa_picture.h"
CXFA_BindData::CXFA_BindData(CXFA_Node* pNode) : CXFA_DataData(pNode) {}
WideString CXFA_BindData::GetPicture() {
- CXFA_Node* pPicture = m_pNode->GetChild(0, XFA_Element::Picture, false);
- if (!pPicture)
- return L"";
- return pPicture->JSObject()->GetContent(false);
+ CXFA_Picture* pPicture =
+ m_pNode->GetChild<CXFA_Picture>(0, XFA_Element::Picture, false);
+ return pPicture ? pPicture->JSObject()->GetContent(false) : L"";
}