X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00e6d8ab78e9ccc985afc6551a179f58967ef6bd..83c22707a40f2b96601748bddbce4d927ab3c084:/src/common/docview.cpp

diff --git a/src/common/docview.cpp b/src/common/docview.cpp
index 7a97237c38..549eb66f48 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,