X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e1c35f810f574af79e649fa37171dfa7fc775ee..9f4de6b2cf06f53a98b28f53640f3b9ec8cf4182:/src/common/filename.cpp?ds=inline diff --git a/src/common/filename.cpp b/src/common/filename.cpp index db586b2f6a..a80b0c8f92 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -1220,7 +1220,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const } } - if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() && fullpath.Last() != wxFILE_SEP_PATH) + if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() && fullpath.Last() != GetPathSeparator(format)) { fullpath += GetPathSeparator(format); }