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
This commit is contained in:
Ove Kaaven 1999-04-15 14:54:16 +00:00
parent e06937ad73
commit 15965b8b11
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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