Index: xfa/fwl/core/cfwl_listbox.cpp |
diff --git a/xfa/fwl/core/cfwl_listbox.cpp b/xfa/fwl/core/cfwl_listbox.cpp |
index c5bf88107467fb4ccba6bdd740f3bc1d1858ea70..213a6a97cad40048e12268596f09bd6a6569c53b 100644 |
--- a/xfa/fwl/core/cfwl_listbox.cpp |
+++ b/xfa/fwl/core/cfwl_listbox.cpp |
@@ -47,9 +47,8 @@ bool CFWL_ListBox::DeleteString(CFWL_ListItem* pItem) { |
if (nIndex < 0 || static_cast<size_t>(nIndex) >= m_ItemArray.size()) |
return false; |
- int32_t iCount = CountItems(m_pIface.get()); |
int32_t iSel = nIndex + 1; |
- if (iSel >= iCount) { |
+ if (iSel >= CountItems(m_pIface.get())) { |
iSel = nIndex - 1; |
if (iSel < 0) |
npm
2016/11/15 23:27:03
Remove this if: unneeded.
dsinclair
2016/11/16 15:10:47
Done.
|
iSel = -1; |