From: Vadim Zeitlin Date: Thu, 26 Oct 2006 11:57:15 +0000 (+0000) Subject: fixed reversed return value of IsEmpty() (closes 1585004) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/14be47346eda7fc1855b23f29a5008f1fbdfc059?ds=inline fixed reversed return value of IsEmpty() (closes 1585004) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 8a2cd7bffe..08bb79660b 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -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(); }