]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed my sloppy fix for redundant path separators
authorJulian Smart <julian@anthemion.co.uk>
Fri, 26 Apr 2002 09:52:10 +0000 (09:52 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 26 Apr 2002 09:52:10 +0000 (09:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index db586b2f6a783e7f33f89de2b82d739f8aaea22a..a80b0c8f92f21615d764462700df8af758b502ae 100644 (file)
@@ -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);
     }