From 2b15fdfcf3511eefea1fb99f33d24291f4e53a34 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Thu, 10 May 2001 06:35:42 +0000 Subject: [PATCH] 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 --- demos/life/life.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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