From ef55c79650768a731c22038acd36b2a741706ed6 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 9 Jan 2018 10:47:23 -0500 Subject: Move barcode code from WidgetAcc to Node This CL moves the barcode related code from CXFA_WidgetAcc to CXFA_Node. Change-Id: Id3f5f30222535a69a0bf4d59416e57d452c7d8e8 Reviewed-on: https://pdfium-review.googlesource.com/22551 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/cxfa_fftextedit.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/cxfa_fftextedit.cpp') diff --git a/xfa/fxfa/cxfa_fftextedit.cpp b/xfa/fxfa/cxfa_fftextedit.cpp index 8f84b185ca..706a9a84cf 100644 --- a/xfa/fxfa/cxfa_fftextedit.cpp +++ b/xfa/fxfa/cxfa_fftextedit.cpp @@ -273,10 +273,8 @@ bool CXFA_FFTextEdit::UpdateFWLData() { } } else if (m_pNode->GetWidgetAcc()->GetUIType() == XFA_Element::Barcode) { int32_t nDataLen = 0; - if (eType == XFA_VALUEPICTURE_Edit) { - nDataLen = - m_pNode->GetWidgetAcc()->GetBarcodeAttribute_DataLength().value_or(0); - } + if (eType == XFA_VALUEPICTURE_Edit) + nDataLen = m_pNode->GetBarcodeAttribute_DataLength().value_or(0); pEdit->SetLimit(nDataLen); bUpdate = true; -- cgit v1.2.3