Fix wxHtmlHelpData::SetTempDir() to behave correctly without trailing slash.

The path passed to this function is always a directory, so use
wxFileName::AssignDir() instead of the default constructor of wxFileName which
considers the name to be a name of a file unless it ends with a path separator.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-08-23 16:37:09 +00:00
parent d58b140b13
commit 0d53638f71
2 changed files with 3 additions and 2 deletions

View File

@@ -474,7 +474,8 @@ void wxHtmlHelpData::SetTempDir(const wxString& path)
m_tempPath = path;
else
{
wxFileName fn(path);
wxFileName fn;
fn.AssignDir(path);
fn.MakeAbsolute();
m_tempPath = fn.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);