]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Minor OS/2 bug with a misplace #endif
[wxWidgets.git] / src / common / filename.cpp
index a7409aa0c89f90c004a3ffc97040806c2031bce9..a80b0c8f92f21615d764462700df8af758b502ae 100644 (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() != GetPathSeparator(format))
     {
         fullpath += GetPathSeparator(format);
     }