From 4785fdae077280ce1e631e3122b0b683e947bd02 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 23 Nov 2003 22:19:00 +0000 Subject: [PATCH] Avoid doubling of path separator (needed to make it work on OS/2). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/dir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/dir.cpp b/src/unix/dir.cpp index 6a8dd2be7c..7ef3fb1ba6 100644 --- a/src/unix/dir.cpp +++ b/src/unix/dir.cpp @@ -148,7 +148,8 @@ bool wxDirData::Read(wxString *filename) // speed up string concatenation in the loop a bit wxString path = m_dirname; - path += _T('/'); + if (!wxIsPathSeparator(path.Last())) + path += _T('/'); path.reserve(path.length() + 255); wxString de_d_name;