Index: xfa/fwl/lightwidget/cfwl_widget.cpp |
diff --git a/xfa/fwl/lightwidget/cfwl_widget.cpp b/xfa/fwl/lightwidget/cfwl_widget.cpp |
index 8d3237605f858276446f488bde3ccb0a66c42261..20c9a3b92f7e5e9a5bf7bdb78e2998fbfa520951 100644 |
--- a/xfa/fwl/lightwidget/cfwl_widget.cpp |
+++ b/xfa/fwl/lightwidget/cfwl_widget.cpp |
@@ -217,7 +217,7 @@ IFWL_WidgetDelegate* CFWL_Widget::SetDelegate(IFWL_WidgetDelegate* pDelegate) { |
CFWL_Widget::CFWL_Widget() |
: m_pIface(nullptr), m_pDelegate(nullptr), m_pProperties(nullptr) { |
m_pProperties = new CFWL_WidgetProperties; |
- m_pWidgetMgr = static_cast<CFWL_WidgetMgr*>(FWL_GetWidgetMgr()); |
+ m_pWidgetMgr = CFWL_WidgetMgr::GetInstance(); |
ASSERT(m_pWidgetMgr); |
} |