]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
wxaui maximize/restore button patch from Aleksey Sanin (many thanks)
[wxWidgets.git] / src / gtk / textctrl.cpp
index 8a2cd7bffe1eeaf6de5f5d0938684722a08df863..08bb79660ba547a62cad2a3653ecf2aec516d968 100644 (file)
@@ -924,7 +924,7 @@ wxFontEncoding wxTextCtrl::GetTextEncoding() const
 bool wxTextCtrl::IsEmpty() const
 {
     if ( IsMultiLine() )
-        return gtk_text_buffer_get_char_count(m_buffer) != 0;
+        return gtk_text_buffer_get_char_count(m_buffer) == 0;
 
     return wxTextCtrlBase::IsEmpty();
 }