From 1ae1842962836347caf41cb5ca6d0db9471ab974 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Fri, 19 Sep 2003 07:51:28 +0000 Subject: [PATCH] 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 --- contrib/src/stc/stc.cpp | 2 +- contrib/src/stc/stc.cpp.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index d51b8d04a0..493db91db6 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -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; diff --git a/contrib/src/stc/stc.cpp.in b/contrib/src/stc/stc.cpp.in index fa23c2587b..2df0a99cc2 100644 --- a/contrib/src/stc/stc.cpp.in +++ b/contrib/src/stc/stc.cpp.in @@ -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;