patch 1073385

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-11-25 20:37:44 +00:00
parent b494e2b008
commit f44eaed650
6 changed files with 56 additions and 54 deletions

View File

@@ -155,7 +155,9 @@ void TestApp::List(Test *test, const string& parent /*=""*/) const
// take the last component of the name and append to the parent
name = test->getName();
string::size_type i = name.find_last_of(".:");
name = parent + "." + (i != string::npos ? name.substr(i + 1) : name);
if (i != string::npos)
name = name.substr(i + 1);
name = parent + "." + name;
// drop the 1st component from the display and indent
if (parent != "") {