From 14a60c50b10de1d9e4edd3629ea210a816940a75 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 16 Nov 2016 12:15:27 -0800 Subject: Continue formatting fwl/core Review-Url: https://codereview.chromium.org/2506083002 --- xfa/fwl/core/ifwl_comboboxproxy.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'xfa/fwl/core/ifwl_comboboxproxy.cpp') diff --git a/xfa/fwl/core/ifwl_comboboxproxy.cpp b/xfa/fwl/core/ifwl_comboboxproxy.cpp index 2ca65d7f69..4bc1e294d4 100644 --- a/xfa/fwl/core/ifwl_comboboxproxy.cpp +++ b/xfa/fwl/core/ifwl_comboboxproxy.cpp @@ -87,23 +87,23 @@ void IFWL_ComboBoxProxy::OnLButtonUp(CFWL_MsgMouse* pMsg) { CFWL_NoteDriver* pDriver = static_cast(pApp->GetNoteDriver()); pDriver->SetGrab(this, false); - if (m_bLButtonUpSelf) { - CFX_RectF rect; - GetWidgetRect(rect); - rect.left = rect.top = 0; - if (!rect.Contains(pMsg->m_fx, pMsg->m_fy) && - m_pComboBox->IsDropListVisible()) { - m_pComboBox->ShowDropList(false); - } - } else { + if (!m_bLButtonUpSelf) { m_bLButtonUpSelf = true; + return; + } + + CFX_RectF rect; + GetWidgetRect(rect); + rect.left = rect.top = 0; + if (!rect.Contains(pMsg->m_fx, pMsg->m_fy) && + m_pComboBox->IsDropListVisible()) { + m_pComboBox->ShowDropList(false); } } void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, bool bSet) { if (bSet) return; - if (!pMsg->m_pSetFocus) m_pComboBox->ShowDropList(false); } -- cgit v1.2.3