Use GetFullPath not GetFullName in OnWrite else we'll always write the

file to the cwd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2002-01-03 06:22:38 +00:00
parent 6fe7378863
commit deab45402f

View File

@@ -177,7 +177,7 @@ bool wxTextFile::OnWrite(wxTextFileType typeNew, wxMBConv& conv)
if ( !fn.IsAbsolute() ) if ( !fn.IsAbsolute() )
fn.Normalize(); fn.Normalize();
wxTempFile fileTmp(fn.GetFullName()); wxTempFile fileTmp(fn.GetFullPath());
if ( !fileTmp.IsOpened() ) { if ( !fileTmp.IsOpened() ) {
wxLogError(_("can't write buffer '%s' to disk."), m_strBufferName.c_str()); wxLogError(_("can't write buffer '%s' to disk."), m_strBufferName.c_str());