git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22059
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxFileName::MakeRelativeTo(const wxString& pathBase, wxPathFormat format)
{
bool wxFileName::MakeRelativeTo(const wxString& pathBase, wxPathFormat format)
{
- wxFileName fnBase(pathBase, format);
+ wxFileName fnBase = wxFileName::DirName(pathBase, format);
// get cwd only once - small time saving
wxString cwd = wxGetCwd();
// get cwd only once - small time saving
wxString cwd = wxGetCwd();