Freeze/Thaw patch missed a place where m_buffer should be used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock 2004-12-05 19:15:11 +00:00
parent 636673edda
commit b6ae8db82b
2 changed files with 2 additions and 4 deletions

View File

@ -600,8 +600,7 @@ void wxTextCtrl::SetValue( const wxString &value )
#else
wxCharBuffer buffer( wxConvUTF8.cWC2MB( wxConvLocal.cWX2WC( value ) ) );
#endif
GtkTextBuffer *text_buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(m_text) );
if (gtk_text_buffer_get_char_count(text_buffer) != 0)
if (gtk_text_buffer_get_char_count(m_buffer) != 0)
IgnoreNextTextUpdate();
gtk_text_buffer_set_text( m_buffer, buffer, strlen(buffer) );

View File

@ -600,8 +600,7 @@ void wxTextCtrl::SetValue( const wxString &value )
#else
wxCharBuffer buffer( wxConvUTF8.cWC2MB( wxConvLocal.cWX2WC( value ) ) );
#endif
GtkTextBuffer *text_buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(m_text) );
if (gtk_text_buffer_get_char_count(text_buffer) != 0)
if (gtk_text_buffer_get_char_count(m_buffer) != 0)
IgnoreNextTextUpdate();
gtk_text_buffer_set_text( m_buffer, buffer, strlen(buffer) );