git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-01-05 21:03:38 +00:00
parent 022c0ee2cd
commit 1d416e48df
2 changed files with 2 additions and 2 deletions

View File

@@ -686,7 +686,7 @@ wxString wxTextCtrl::GetLineText( long lineNo ) const
GtkTextIter end;
gtk_text_buffer_get_end_iter(text_buffer,&end );
gchar *text = gtk_text_buffer_get_text(text_buffer,&line,&end,TRUE);
wxString result(text);
wxString result( wxGTK_CONV_BACK(text) );
g_free(text);
return result.BeforeFirst(wxT('\n'));
#endif

View File

@@ -686,7 +686,7 @@ wxString wxTextCtrl::GetLineText( long lineNo ) const
GtkTextIter end;
gtk_text_buffer_get_end_iter(text_buffer,&end );
gchar *text = gtk_text_buffer_get_text(text_buffer,&line,&end,TRUE);
wxString result(text);
wxString result( wxGTK_CONV_BACK(text) );
g_free(text);
return result.BeforeFirst(wxT('\n'));
#endif