From: Ron Lee Date: Thu, 3 Jan 2002 06:22:38 +0000 (+0000) Subject: Use GetFullPath not GetFullName in OnWrite else we'll always write the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/deab45402f75e69ef35c1c0fe6550b779f9c32b8 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 --- diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index 26053922cd..5f4dd6a268 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -177,7 +177,7 @@ bool wxTextFile::OnWrite(wxTextFileType typeNew, wxMBConv& conv) if ( !fn.IsAbsolute() ) fn.Normalize(); - wxTempFile fileTmp(fn.GetFullName()); + wxTempFile fileTmp(fn.GetFullPath()); if ( !fileTmp.IsOpened() ) { wxLogError(_("can't write buffer '%s' to disk."), m_strBufferName.c_str());