]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
wxBitmap compilation fix for BCC enforced typecast in resource.cpp
[wxWidgets.git] / 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,