diff options
Diffstat (limited to 'xfa/fwl/core/cfwl_combolist.cpp')
-rw-r--r-- | xfa/fwl/core/cfwl_combolist.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xfa/fwl/core/cfwl_combolist.cpp b/xfa/fwl/core/cfwl_combolist.cpp index 7532da26d7..ff7bd2722c 100644 --- a/xfa/fwl/core/cfwl_combolist.cpp +++ b/xfa/fwl/core/cfwl_combolist.cpp @@ -86,8 +86,7 @@ void CFWL_ComboList::OnProcessMessage(CFWL_Message* pMessage) { CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage); CFWL_ScrollBar* vertSB = GetVertScrollBar(); if (IsShowScrollBar(true) && vertSB) { - CFX_RectF rect; - vertSB->GetWidgetRect(rect, false); + CFX_RectF rect = vertSB->GetWidgetRect(); if (rect.Contains(pMsg->m_fx, pMsg->m_fy)) { pMsg->m_fx -= rect.left; pMsg->m_fy -= rect.top; @@ -140,8 +139,7 @@ void CFWL_ComboList::OnDropListMouseMove(CFWL_MsgMouse* pMsg) { CFWL_ScrollBar* vertSB = GetVertScrollBar(); if (IsShowScrollBar(true) && vertSB) { - CFX_RectF rect; - vertSB->GetWidgetRect(rect, false); + CFX_RectF rect = vertSB->GetWidgetRect(); if (rect.Contains(pMsg->m_fx, pMsg->m_fy)) return; } @@ -176,8 +174,7 @@ void CFWL_ComboList::OnDropListLButtonUp(CFWL_MsgMouse* pMsg) { CFWL_ScrollBar* vertSB = GetVertScrollBar(); if (IsShowScrollBar(true) && vertSB) { - CFX_RectF rect; - vertSB->GetWidgetRect(rect, false); + CFX_RectF rect = vertSB->GetWidgetRect(); if (rect.Contains(pMsg->m_fx, pMsg->m_fy)) return; } |