wxFileSelector should have file name only, not path, passed to 3rd arg

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2001-03-05 16:50:58 +00:00
parent 90b22acaa8
commit 015e69f36d

View File

@ -248,7 +248,7 @@ bool wxDocument::SaveAs()
wxString tmp = wxFileSelector(_("Save as"),
docTemplate->GetDirectory(),
GetFilename(),
wxFileNameFromPath(GetFilename()),
docTemplate->GetDefaultExtension(),
docTemplate->GetFileFilter(),
wxSAVE | wxOVERWRITE_PROMPT,