]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
make wxWindow::SetAutoLayout() now works for all windows, not just panels
[wxWidgets.git] / src / common / fileconf.cpp
index 69df300ba2639319b675c1637f91a6edc3d05bba..af20d3535840c5104db7fc6474f07b6c298a506f 100644 (file)
@@ -471,7 +471,7 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv)
     }
 #else // !wxUSE_UNICODE
     // no need for conversion
-    cbuf = wxCharBuffer::CreateNonOwned((char *)buf.GetData());
+    cbuf = wxCharBuffer::CreateNonOwned((char *)buf.GetData(), buf.GetDataLen());
 #endif // wxUSE_UNICODE/!wxUSE_UNICODE
 
 
@@ -746,6 +746,11 @@ void wxFileConfig::SetPath(const wxString& strPath)
     DoSetPath(strPath, true /* create missing path components */);
 }
 
+const wxString& wxFileConfig::GetPath() const
+{
+    return m_strPath;
+}
+
 // ----------------------------------------------------------------------------
 // enumeration
 // ----------------------------------------------------------------------------