Merge commit '04bb1f2f035343217875ce0fc19d3a7abde41717' into HEAD
Bug: 155031873
Change-Id: Ie7dc3f5c4b8999adf8e8885761fe65fd6ee65227
Merged-In: Ie7dc3f5c4b8999adf8e8885761fe65fd6ee65227
diff --git a/xfa/fwl/cfwl_comboedit.cpp b/xfa/fwl/cfwl_comboedit.cpp
index 4fa1277..6ab081a 100644
--- a/xfa/fwl/cfwl_comboedit.cpp
+++ b/xfa/fwl/cfwl_comboedit.cpp
@@ -18,9 +18,10 @@
std::unique_ptr<CFWL_WidgetProperties> properties,
CFWL_Widget* pOuter)
: CFWL_Edit(app, std::move(properties), pOuter) {
- m_pOuter = static_cast<CFWL_ComboBox*>(pOuter);
}
+CFWL_ComboEdit::~CFWL_ComboEdit() = default;
+
void CFWL_ComboEdit::ClearSelected() {
ClearSelection();
RepaintRect(GetRTClient());
@@ -62,7 +63,6 @@
if ((pMsg->m_dwCmd == FWL_MouseCommand::LeftButtonDown) &&
((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)) {
SetSelected();
- m_pOuter->SetFocus(true);
}
break;
}