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