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:
parent
e06937ad73
commit
15965b8b11
@ -288,7 +288,11 @@ wxString wxTextCtrl::GetValue() const
|
|||||||
{
|
{
|
||||||
gint len = gtk_text_get_length( GTK_TEXT(m_text) );
|
gint len = gtk_text_get_length( GTK_TEXT(m_text) );
|
||||||
char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len );
|
char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len );
|
||||||
|
#if wxUSE_UNICODE
|
||||||
tmp = wxString(text,*wxConv_current);
|
tmp = wxString(text,*wxConv_current);
|
||||||
|
#else
|
||||||
|
tmp = text;
|
||||||
|
#endif
|
||||||
g_free( text );
|
g_free( text );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -288,7 +288,11 @@ wxString wxTextCtrl::GetValue() const
|
|||||||
{
|
{
|
||||||
gint len = gtk_text_get_length( GTK_TEXT(m_text) );
|
gint len = gtk_text_get_length( GTK_TEXT(m_text) );
|
||||||
char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len );
|
char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len );
|
||||||
|
#if wxUSE_UNICODE
|
||||||
tmp = wxString(text,*wxConv_current);
|
tmp = wxString(text,*wxConv_current);
|
||||||
|
#else
|
||||||
|
tmp = text;
|
||||||
|
#endif
|
||||||
g_free( text );
|
g_free( text );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user