From 4e1c35f810f574af79e649fa37171dfa7fc775ee Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 25 Apr 2002 10:25:45 +0000 Subject: [PATCH] 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 --- src/common/filename.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filename.cpp b/src/common/filename.cpp index a7409aa0c8..db586b2f6a 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() ) + if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() && fullpath.Last() != wxFILE_SEP_PATH) { fullpath += GetPathSeparator(format); }