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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fxjs/xfa/cjx_draw.cpp b/fxjs/xfa/cjx_draw.cpp
index a1baabfd2c..be9e430ae2 100644
--- a/fxjs/xfa/cjx_draw.cpp
+++ b/fxjs/xfa/cjx_draw.cpp
@@ -120,6 +120,7 @@ void CJX_Draw::defaultValue(CFXJSE_Value* pValue,
if (!pValue || !pValue->IsString())
return;
+ ASSERT(GetXFANode()->IsWidgetReady());
XFA_Element uiType = GetXFANode()->GetWidgetAcc()->GetUIType();
if (uiType != XFA_Element::Text)
return;