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:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user