diff options
Diffstat (limited to 'xfa/fxfa/cxfa_fftextedit.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fftextedit.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; |