summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_draw.cpp')
-rw-r--r--fxjs/xfa/cjx_draw.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fxjs/xfa/cjx_draw.cpp b/fxjs/xfa/cjx_draw.cpp
index be9e430ae2..9d1e76c6f1 100644
--- a/fxjs/xfa/cjx_draw.cpp
+++ b/fxjs/xfa/cjx_draw.cpp
@@ -121,8 +121,7 @@ void CJX_Draw::defaultValue(CFXJSE_Value* pValue,
return;
ASSERT(GetXFANode()->IsWidgetReady());
- XFA_Element uiType = GetXFANode()->GetWidgetAcc()->GetUIType();
- if (uiType != XFA_Element::Text)
+ if (GetXFANode()->GetUIType() != XFA_Element::Text)
return;
WideString wsNewValue = pValue->ToWideString();