]> git.saurik.com Git - wxWidgets.git/commitdiff
Use GetFullPath not GetFullName in OnWrite else we'll always write the
authorRon Lee <ron@debian.org>
Thu, 3 Jan 2002 06:22:38 +0000 (06:22 +0000)
committerRon Lee <ron@debian.org>
Thu, 3 Jan 2002 06:22:38 +0000 (06:22 +0000)
file to the cwd.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textfile.cpp

index 26053922cd0ada639c9c47e9758cdc7b4a9de14e..5f4dd6a2687ecfb3b641190e18ecf415847af994 100644 (file)
@@ -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());