summaryrefslogtreecommitdiff
path: root/fxjs/xfa
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa')
-rw-r--r--fxjs/xfa/cjx_field.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/fxjs/xfa/cjx_field.cpp b/fxjs/xfa/cjx_field.cpp
index 078def3cf9..2b755b7d53 100644
--- a/fxjs/xfa/cjx_field.cpp
+++ b/fxjs/xfa/cjx_field.cpp
@@ -248,12 +248,8 @@ void CJX_Field::defaultValue(CFXJSE_Value* pValue,
WideString wsNewText;
if (pValue && !(pValue->IsNull() || pValue->IsUndefined()))
wsNewText = pValue->ToWideString();
-
- if (xfaNode->GetUIChildNode()->GetElementType() ==
- XFA_Element::NumericEdit) {
- wsNewText = xfaNode->NumericLimit(wsNewText, xfaNode->GetLeadDigits(),
- xfaNode->GetFracDigits());
- }
+ if (xfaNode->GetUIChildNode()->GetElementType() == XFA_Element::NumericEdit)
+ wsNewText = xfaNode->NumericLimit(wsNewText);
CXFA_Node* pContainerNode = xfaNode->GetContainerNode();
WideString wsFormatText(wsNewText);