fix if unicode bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2003-09-19 07:51:28 +00:00
parent ec58a24047
commit 1ae1842962
2 changed files with 2 additions and 2 deletions

View File

@@ -2142,7 +2142,7 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename)
void *bufptr = buffer.GetWriteBuf(len);
success = (file.Read(bufptr, len) == len);
buffer.UngetWriteBuf(len);
#if #wxUSE_UNICODE
#if wxUSE_UNICODE
contents = wxString(buffer, *wxConvCurrent);
#else
contents = buffer;

View File

@@ -347,7 +347,7 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename)
void *bufptr = buffer.GetWriteBuf(len);
success = (file.Read(bufptr, len) == len);
buffer.UngetWriteBuf(len);
#if #wxUSE_UNICODE
#if wxUSE_UNICODE
contents = wxString(buffer, *wxConvCurrent);
#else
contents = buffer;