Index: xfa/fxfa/app/xfa_ffpushbutton.cpp |
diff --git a/xfa/fxfa/app/xfa_ffpushbutton.cpp b/xfa/fxfa/app/xfa_ffpushbutton.cpp |
index 527cfbc23999179532bba75fe34a844927293537..e64858101117f21861ad3e2a87218a3867398825 100644 |
--- a/xfa/fxfa/app/xfa_ffpushbutton.cpp |
+++ b/xfa/fxfa/app/xfa_ffpushbutton.cpp |
@@ -55,7 +55,9 @@ FX_BOOL CXFA_FFPushButton::LoadWidget() { |
CFWL_PushButton* pPushButton = new CFWL_PushButton(GetFWLApp()); |
pPushButton->Initialize(); |
- m_pOldDelegate = pPushButton->SetDelegate(this); |
+ m_pOldDelegate = pPushButton->GetCurrentDelegate(); |
+ pPushButton->SetCurrentDelegate(this); |
+ |
m_pNormalWidget = pPushButton; |
m_pNormalWidget->SetLayoutItem(this); |
IFWL_Widget* pWidget = m_pNormalWidget->GetWidget(); |