summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-11 19:07:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-11 19:07:46 (GMT)
commit9e97f7f6844d5fd0bdaafc9a74fe762de0417dd8 (patch)
treef1ea09d5296a7c28f333d8c24c60bb29dedd4d1d /Source/MFCDialog
parent93002a44001eb387ebac9607e5f2d66503897042 (diff)
downloadCMake-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.cpp6
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()