From 15965b8b1156721bf7ef2bdcbcc09c57fd5d0c0e Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Thu, 15 Apr 1999 14:54:16 +0000 Subject: [PATCH] Compilation problem in non-Unicode mode. (Will fix in a more beautiful way later) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textctrl.cpp | 4 ++++ src/gtk1/textctrl.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index d300952a7f..9142eaa632 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -288,7 +288,11 @@ wxString wxTextCtrl::GetValue() const { gint len = gtk_text_get_length( GTK_TEXT(m_text) ); char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len ); +#if wxUSE_UNICODE tmp = wxString(text,*wxConv_current); +#else + tmp = text; +#endif g_free( text ); } else diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index d300952a7f..9142eaa632 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -288,7 +288,11 @@ wxString wxTextCtrl::GetValue() const { gint len = gtk_text_get_length( GTK_TEXT(m_text) ); char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len ); +#if wxUSE_UNICODE tmp = wxString(text,*wxConv_current); +#else + tmp = text; +#endif g_free( text ); } else