]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Reverted/commented out unsuccessful defer fix
[wxWidgets.git] / src / gtk / textctrl.cpp
index 8b1cf320b1b0242af2c088dbd8d08f0deb209822..47dca6fb4d2c9687074e1e8104173c6af1bf5f97 100644 (file)
@@ -907,6 +907,12 @@ void wxTextCtrl::SetValue( const wxString &value )
         if (gtk_text_buffer_get_char_count(m_buffer) != 0)
             IgnoreNextTextUpdate();
 
+        if ( !buffer )
+        {
+            // what else can we do? at least don't crash...
+            return;
+        }
+        
         gtk_text_buffer_set_text( m_buffer, buffer, strlen(buffer) );
 
 #else