]> git.saurik.com Git - wxWidgets.git/commitdiff
wxFileSelector should have file name only, not path, passed to 3rd arg
authorJulian Smart <julian@anthemion.co.uk>
Mon, 5 Mar 2001 16:50:58 +0000 (16:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 5 Mar 2001 16:50:58 +0000 (16:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docview.cpp

index 7a97237c38b1cd817b0b34a02f83b5b876e71b47..549eb66f48aa0596e6f130a1fe94da3e874df9a5 100644 (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,