consider only fully visible items

Change-Id: I32d88e5206a96b316f29cf4ede04a6ac951d86d5
This commit is contained in:
Ivan Timofeev 2012-08-01 10:16:49 +04:00
parent 09eb412b2c
commit 6657052e46

View file

@ -2308,7 +2308,7 @@ SvLBoxEntry* SvTreeListBox::GetLastEntryInView() const
{
Point aPos( GetEntryPosition(pNext) );
const Size& rSize = pImp->GetOutputSize();
if( aPos.Y() < 0 || aPos.Y() >= rSize.Height() )
if( aPos.Y() < 0 || aPos.Y() + GetEntryHeight() >= rSize.Height() )
break;
else
pEntry = pNext;