summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffnumericedit.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-08 15:53:54 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-08 21:10:54 +0000
commit64204f591bc27976a7123ec5a88558542486bb3f (patch)
tree3f62e83d718287b0be4d9a0999ddd8371027f192 /xfa/fxfa/cxfa_ffnumericedit.cpp
parent88c8e2fe2076fa4b5088b912dd92c3b2a56bb3ec (diff)
downloadpdfium-64204f591bc27976a7123ec5a88558542486bb3f.tar.xz
Convert XFA_GetLocaleValue to accept a CXFA_Node
This CL changes XFA_GetLocaleValue to accept a CXFA_Node instead of a CXFA_WidgetAcc. Change-Id: Id304fd8dafcc6e644058230289e497525702fa79 Reviewed-on: https://pdfium-review.googlesource.com/22470 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffnumericedit.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffnumericedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffnumericedit.cpp b/xfa/fxfa/cxfa_ffnumericedit.cpp
index 666f3c0c9b..b437bc2b2a 100644
--- a/xfa/fxfa/cxfa_ffnumericedit.cpp
+++ b/xfa/fxfa/cxfa_ffnumericedit.cpp
@@ -82,7 +82,7 @@ bool CXFA_FFNumericEdit::OnValidate(CFWL_Widget* pWidget, WideString& wsText) {
return true;
WideString wsFormat;
- CXFA_LocaleValue widgetValue = XFA_GetLocaleValue(m_pNode->GetWidgetAcc());
+ CXFA_LocaleValue widgetValue = XFA_GetLocaleValue(m_pNode.Get());
widgetValue.GetNumericFormat(wsFormat,
m_pNode->GetWidgetAcc()->GetLeadDigits(),
m_pNode->GetWidgetAcc()->GetFracDigits());