BUG: fix for 4028 fix scroll after delete

This commit is contained in:
Bill Hoffman 2006-11-11 14:07:46 -05:00
parent 93002a4400
commit 9e97f7f684

View File

@ -736,6 +736,12 @@ void CPropertyList::OnDelete()
this->HideControls();
this->SetTopIndex(0);
InvalidateList();
m_curSel += 1;
if(m_curSel > this->GetCount())
{
m_curSel = this->GetCount();
}
this->SetCurSel(m_curSel);
}
void CPropertyList::OnHelp()