diff options
Diffstat (limited to 'fpdfsdk/fxedit/fxet_list.cpp')
-rw-r--r-- | fpdfsdk/fxedit/fxet_list.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp index 80f4fcc63e..6778122b7e 100644 --- a/fpdfsdk/fxedit/fxet_list.cpp +++ b/fpdfsdk/fxedit/fxet_list.cpp @@ -322,7 +322,7 @@ CFX_FloatRect CFX_ListCtrl::GetItemRectInternal(int32_t nIndex) const { CFX_FloatRect rcItem = m_ListItems[nIndex]->GetRect(); rcItem.left = 0.0f; rcItem.right = GetPlateRect().Width(); - return InnerToOuter(CLST_Rect(rcItem)); + return InnerToOuter(rcItem); } int32_t CFX_ListCtrl::GetCaret() const { @@ -519,11 +519,12 @@ void CFX_ListCtrl::ReArrange(int32_t nItemIndex) { for (const auto& pListItem : m_ListItems) { if (pListItem) { float fListItemHeight = pListItem->GetItemHeight(); - pListItem->SetRect(CLST_Rect(0.0f, fPosY, 0.0f, fPosY + fListItemHeight)); + pListItem->SetRect( + CFX_FloatRect(0.0f, fPosY + fListItemHeight, 0.0f, fPosY)); fPosY += fListItemHeight; } } - SetContentRect(CLST_Rect(0.0f, 0.0f, 0.0f, fPosY)); + SetContentRect(CFX_FloatRect(0.0f, fPosY, 0.0f, 0.0f)); SetScrollInfo(); } |