make the path absolute before using it with gtk_file_chooser_set_current_folder() (patch 1753796)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-07-14 20:30:46 +00:00
parent 2d1593cd4b
commit 78355ffc7b

View File

@ -237,6 +237,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
fn.AssignDir(defaultDir);
// set the initial file name and/or directory
fn.MakeAbsolute(); // GTK+ needs absolute path
const wxString dir = fn.GetPath();
if ( !dir.empty() )
{