]> git.saurik.com Git - wxWidgets.git/commitdiff
Freeze/Thaw patch missed a place where m_buffer should be used
authorKevin Hock <hockkn@yahoo.com>
Sun, 5 Dec 2004 19:15:11 +0000 (19:15 +0000)
committerKevin Hock <hockkn@yahoo.com>
Sun, 5 Dec 2004 19:15:11 +0000 (19:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp
src/gtk1/textctrl.cpp

index dcc5791ef7e3e2f7c09ed4e08bc0b71690a2b770..625ec9c915e42ad66e124f198ca55630f0d0b982 100644 (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) );
index dcc5791ef7e3e2f7c09ed4e08bc0b71690a2b770..625ec9c915e42ad66e124f198ca55630f0d0b982 100644 (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) );