Index: xfa/fxfa/app/xfa_ffwidgethandler.cpp |
diff --git a/xfa/fxfa/app/xfa_ffwidgethandler.cpp b/xfa/fxfa/app/xfa_ffwidgethandler.cpp |
index b4d268920cd6eee35da8fc94d26dc2457e413c2f..df8e42466226538e964ff1a6b0873008fd4c5fdf 100644 |
--- a/xfa/fxfa/app/xfa_ffwidgethandler.cpp |
+++ b/xfa/fxfa/app/xfa_ffwidgethandler.cpp |
@@ -264,8 +264,8 @@ CXFA_FFWidget* CXFA_FFWidgetHandler::CreateWidget(CXFA_FFWidget* hParent, |
if (!pNewFormItem) |
return nullptr; |
- pNewFormItem->GetTemplateNode()->SetFlag(XFA_NODEFLAG_Initialized); |
- pNewFormItem->SetFlag(XFA_NODEFLAG_Initialized); |
+ pNewFormItem->GetTemplateNode()->SetFlag(XFA_NODEFLAG_Initialized, true); |
+ pNewFormItem->SetFlag(XFA_NODEFLAG_Initialized, true); |
m_pDocView->RunLayout(); |
CXFA_LayoutItem* pLayout = |
m_pDocView->GetXFALayout()->GetLayoutItem(pNewFormItem); |