From: Guillermo Rodriguez Garcia Date: Thu, 10 May 2001 06:35:42 +0000 (+0000) Subject: Use GetPath instead of GetFileName in file selector, otherwise it doesn't work for... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2b15fdfcf3511eefea1fb99f33d24291f4e53a34?ds=inline Use GetPath instead of GetFileName in file selector, otherwise it doesn't work for files outside the current directory git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/life/life.cpp b/demos/life/life.cpp index f4f80eac16..0043a399cc 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -443,7 +443,7 @@ void LifeFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) if (filedlg.ShowModal() == wxID_OK) { - wxFileInputStream stream(filedlg.GetFilename()); + wxFileInputStream stream(filedlg.GetPath()); LifeReader reader(stream); // the reader handles errors itself, no need to do anything here