X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/764835a5d5b72c635527bfbb350d190c89381b44..2dace059ee7aefeea0f2b843f1808b117f112795:/demos/life/life.cpp 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