diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-11 19:07:46 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-11 19:07:46 (GMT) |
commit | 9e97f7f6844d5fd0bdaafc9a74fe762de0417dd8 (patch) | |
tree | f1ea09d5296a7c28f333d8c24c60bb29dedd4d1d /Source/MFCDialog | |
parent | 93002a44001eb387ebac9607e5f2d66503897042 (diff) | |
download | CMake-9e97f7f6844d5fd0bdaafc9a74fe762de0417dd8.zip CMake-9e97f7f6844d5fd0bdaafc9a74fe762de0417dd8.tar.gz CMake-9e97f7f6844d5fd0bdaafc9a74fe762de0417dd8.tar.bz2 |
BUG: fix for 4028 fix scroll after delete
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index 731e870..8765fa8 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -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() |