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:
parent
a4019ec280
commit
4e1c35f810
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user