]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed reversed return value of IsEmpty() (closes 1585004)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Oct 2006 11:57:15 +0000 (11:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Oct 2006 11:57:15 +0000 (11:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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();
 }