diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-06 17:18:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-06 17:18:55 (GMT) |
commit | 72e8b44793dfa7881479d8746397b87a572b99f9 (patch) | |
tree | ece335028f61254fa966e4daa2298c1e37da4160 /Source/MFCDialog/PropertyList.cpp | |
parent | 6948617497e9bed7342ea21c6dba82425de3aebc (diff) | |
download | CMake-72e8b44793dfa7881479d8746397b87a572b99f9.zip CMake-72e8b44793dfa7881479d8746397b87a572b99f9.tar.gz CMake-72e8b44793dfa7881479d8746397b87a572b99f9.tar.bz2 |
BUG: PATH options should not remove the file part of the path...
Diffstat (limited to 'Source/MFCDialog/PropertyList.cpp')
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index 903ca45..774d1c4 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -446,17 +446,8 @@ void CPropertyList::OnButton() } else if (pItem->m_nItemType == CPropertyList::PATH) { - CString initialDir; - CString currPath = pItem->m_curValue; - if (currPath.GetLength() > 0) - { - int endSlash = currPath.ReverseFind('\\'); - if(endSlash == -1) - { - endSlash = currPath.ReverseFind('/'); - } - initialDir = currPath.Left(endSlash); - } + CString initialDir = pItem->m_curValue; + // convert back to windos style path initialDir.Replace("/", "\\"); CString title = "Setting Cache Value: "; title += pItem->m_propName; |