bug in SplitPath() corrected - now ".." handled correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-06-22 21:58:31 +00:00
parent 7f17c6dbbf
commit 937d4f4d31

View File

@@ -243,6 +243,8 @@ void SplitPath(wxArrayString& aParts, const char *sz)
wxLogWarning("'%s' has extra '..', ignored.", sz);
else
aParts.Remove(aParts.Count() - 1);
strCurrent.Empty();
}
else if ( !strCurrent.IsEmpty() ) {
aParts.Add(strCurrent);