Browse Source

Fixed issue with N and P to go to next and previous descriptions

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@758 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 11 years ago
parent
commit
f1f2ae9853
1 changed files with 2 additions and 4 deletions
  1. 2 4
      QListCtrl.cpp

+ 2 - 4
QListCtrl.cpp

@@ -918,11 +918,9 @@ bool CQListCtrl::ShowFullDescription(bool bFromAuto, bool fromNextPrev)
 	if (this->GetSelectedCount() == 0)
 	{
 		return false;
-	}
+	}	
 
-	CClipIDs IDs;
-	this->GetSelectionItemData(IDs);
-	int clipId = IDs[0];
+	int clipId = this->GetItemData(this->GetCaret());
 
 	if(m_pToolTip != NULL && 
 		m_pToolTip->GetClipId() == clipId &&