handle volume part of the path correctly in wxFileName(path, name, ext) ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user