In GetPath(), don't append separator if there's already one at the end

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-04-25 10:25:45 +00:00
parent a4019ec280
commit 4e1c35f810

View File

@ -1220,7 +1220,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const
}
}
if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() )
if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() && fullpath.Last() != wxFILE_SEP_PATH)
{
fullpath += GetPathSeparator(format);
}