From b6ae8db82b3de9811238d8dd68d87f764fd72725 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Sun, 5 Dec 2004 19:15:11 +0000 Subject: [PATCH] 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 --- src/gtk/textctrl.cpp | 3 +-- src/gtk1/textctrl.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index dcc5791ef7..625ec9c915 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -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) ); diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index dcc5791ef7..625ec9c915 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -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) ); -- 2.45.2