summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-13 17:59:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-13 17:59:55 (GMT)
commit3031e9ee9a26659e9e0935759c5d0bba6199bf12 (patch)
tree3fe2283ac1276d20a08c01b92e1e3b9c2201213c /Source
parent664c39d09ab2e46f1ff3d48929b75ea288862c4b (diff)
downloadCMake-3031e9ee9a26659e9e0935759c5d0bba6199bf12.zip
CMake-3031e9ee9a26659e9e0935759c5d0bba6199bf12.tar.gz
CMake-3031e9ee9a26659e9e0935759c5d0bba6199bf12.tar.bz2
ENH: merge changes in from main tree
Diffstat (limited to 'Source')
-rw-r--r--Source/MFCDialog/PropertyList.cpp6
-rw-r--r--Source/cmFindBase.cxx10
2 files changed, 10 insertions, 6 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()
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index 08102c3..ef7e5fe 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -621,21 +621,19 @@ void cmFindBase::ExpandRegistryAndCleanPath()
j != this->SearchPathSuffixes.end(); ++j)
{
std::string p = *i + std::string("/") + *j;
- if(cmSystemTools::FileIsDirectory(p.c_str()))
- {
+ // add to all paths because the search path may be modified
+ // later with lib being replaced for lib64 which may exist
this->SearchPaths.push_back(p);
}
}
- }
// now put the path without the path suffixes in the SearchPaths
for(i = finalPath.begin();
i != finalPath.end(); ++i)
{
- if(cmSystemTools::FileIsDirectory(i->c_str()))
- {
+ // put all search paths in because it may later be replaced
+ // by lib64 stuff fixes bug 4009
this->SearchPaths.push_back(*i);
}
- }
}
void cmFindBase::PrintFindStuff()