Browse Source

fixed issue with pasting last 10 items through hot keys

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@615 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 14 years ago
parent
commit
a4898a36c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MainFrm.cpp

+ 1 - 1
MainFrm.cpp

@@ -414,7 +414,7 @@ void CMainFrame::DoFirstTenPositionsPaste(int nPos)
 {
     try
     {
-        CppSQLite3Query q = theApp.m_db.execQueryEx(_T("SELECT lID FROM Main ")_T("WHERE ((bIsGroup = 1 AND lParentID = -1) OR bIsGroup = 0) ")_T("ORDER BY bIsGroup ASC, clipOrder DESC ")_T("LIMIT 1 OFFSET %d"), nPos);
+        CppSQLite3Query q = theApp.m_db.execQueryEx(_T("SELECT lID, bIsGroup FROM Main WHERE ((bIsGroup = 1 AND lParentID = -1) OR bIsGroup = 0) ORDER BY bIsGroup ASC, clipOrder DESC LIMIT 1 OFFSET %d"), nPos);
 
         if(q.eof() == false)
         {