From 015e69f36dfbc469eef59456f973d0567e865d70 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 5 Mar 2001 16:50:58 +0000 Subject: [PATCH] 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 --- src/common/docview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 7a97237..549eb66 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -248,7 +248,7 @@ bool wxDocument::SaveAs() wxString tmp = wxFileSelector(_("Save as"), docTemplate->GetDirectory(), - GetFilename(), + wxFileNameFromPath(GetFilename()), docTemplate->GetDefaultExtension(), docTemplate->GetFileFilter(), wxSAVE | wxOVERWRITE_PROMPT, -- 2.7.4