X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/764835a5d5b72c635527bfbb350d190c89381b44..1341230e80db9f532df40e28e8cb799136c4883d:/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