summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_datetimeedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/ifwl_datetimeedit.cpp')
-rw-r--r--xfa/fwl/core/ifwl_datetimeedit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fwl/core/ifwl_datetimeedit.cpp b/xfa/fwl/core/ifwl_datetimeedit.cpp
index 9d0a08bed6..6a7fd26214 100644
--- a/xfa/fwl/core/ifwl_datetimeedit.cpp
+++ b/xfa/fwl/core/ifwl_datetimeedit.cpp
@@ -42,8 +42,7 @@ void CFWL_DateTimeEditImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {
if (dwHashCode == CFWL_MessageType::SetFocus ||
dwHashCode == CFWL_MessageType::KillFocus) {
IFWL_Widget* pOuter = m_pOwner->GetOuter();
- IFWL_WidgetDelegate* pDelegate = pOuter->SetDelegate(nullptr);
- pDelegate->OnProcessMessage(pMessage);
+ pOuter->GetCurrentDelegate()->OnProcessMessage(pMessage);
}
}