]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Expression simplifications for scaling and inflating.
[wxWidgets.git] / src / gtk / textctrl.cpp
index 94718d2f35d306605fa910cc3c1b76b3dacfb3ab..5d4025de68c029d4b23baa4c56278e78b32405f5 100644 (file)
@@ -518,7 +518,8 @@ wxString wxTextCtrl::GetValue() const
 #else
         wxCharBuffer buffer( wxConvLocal.cWC2WX( wxConvUTF8.cMB2WC( text ) ) );
 #endif
-        tmp = buffer;
+        if ( buffer )
+            tmp = buffer;
 
         g_free( text );
 #else
@@ -1482,8 +1483,10 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
     if ( !wxControl::SetBackgroundColour( colour ) )
         return FALSE;
 
+#ifndef __WXGTK20__
     if (!m_widget->window)
         return FALSE;
+#endif
 
     if (!m_backgroundColour.Ok())
         return FALSE;