summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/PropertyList.cpp
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-04-24 17:32:31 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-04-24 17:32:31 (GMT)
commit37468fad3aed3eb5116e42362d1b6f37adde595f (patch)
treea3b4aa6f418f3c0d4116c4549d1b4917abcc38ab /Source/MFCDialog/PropertyList.cpp
parent818b0e5bc1755d72e429ab89391254647c194eb5 (diff)
downloadCMake-37468fad3aed3eb5116e42362d1b6f37adde595f.zip
CMake-37468fad3aed3eb5116e42362d1b6f37adde595f.tar.gz
CMake-37468fad3aed3eb5116e42362d1b6f37adde595f.tar.bz2
BUG: fix cache updates
Diffstat (limited to 'Source/MFCDialog/PropertyList.cpp')
-rw-r--r--Source/MFCDialog/PropertyList.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp
index 5c69967..a4b2aea 100644
--- a/Source/MFCDialog/PropertyList.cpp
+++ b/Source/MFCDialog/PropertyList.cpp
@@ -144,10 +144,8 @@ int CPropertyList::AddProperty(const char* name,
}
}
// if it is not found, then create a new one
- int nIndex = AddString(_T(""));
pItem = new CPropertyItem(name, value, type, comboItems);
- SetItemDataPtr(nIndex,pItem);
- return nIndex;
+ return this->AddPropItem(pItem);
}
int CPropertyList::OnCreate(LPCREATESTRUCT lpCreateStruct)