X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fb5a4ce6348933b32ea709eae93a9f55809a092..8dfef0c246fb5c741334ecc085aea56324bc0bf8:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index d0776be785..18b8b2759e 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -453,6 +453,18 @@ void wxFileName::Assign(const wxString& fullpathOrig, Assign(volume, path, name, ext, format); } +void wxFileName::Assign(const wxString& pathOrig, + const wxString& name, + const wxString& ext, + wxPathFormat format) +{ + wxString volume, + path; + SplitVolume(pathOrig, &volume, &path, format); + + Assign(volume, path, name, ext, format); +} + void wxFileName::AssignDir(const wxString& dir, wxPathFormat format) { Assign(dir, _T(""), format);