Browse Source

load more than 2 items in the future, double the displayed row count now

scott brogden 8 years ago
parent
commit
cb58c5966b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      QPasteWnd.cpp

+ 1 - 1
QPasteWnd.cpp

@@ -4807,7 +4807,7 @@ void CQPasteWnd::GetDispInfo(NMHDR *pNMHDR, LRESULT *pResult)
 
                         if(addToLoadItems)
                         {
-                            CPoint loadItem(pItem->iItem, (m_lstHeader.GetTopIndex() + m_lstHeader.GetCountPerPage() + 2));
+                            CPoint loadItem(pItem->iItem, (m_lstHeader.GetTopIndex() + (m_lstHeader.GetCountPerPage() * 2)));
 
 							//Log(StrF(_T("DrawItem index %d, add: %d"), loadItem.x, loadItem.y));
                             m_loadItems.push_back(loadItem);