Browse Source

fixed bug if you used global hot keys to paste the last item in the list it would not paste
[SAB]


git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@129 595ec19a-5cb4-439b-94a8-42fb3063c22c

sabrogden 21 years ago
parent
commit
846eda112a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MainFrm.cpp

+ 1 - 1
MainFrm.cpp

@@ -266,7 +266,7 @@ void CMainFrame::DoFirstTenPositionsPaste(int nPos)
 		{
 			Recset.MoveLast();
 
-			if(Recset.GetRecordCount() > nPos)
+			if(Recset.GetRecordCount() > (nPos-1))
 			{
 				Recset.SetAbsolutePosition(nPos-1);
 				if(Recset.m_bIsGroup == FALSE)