From 14be47346eda7fc1855b23f29a5008f1fbdfc059 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 26 Oct 2006 11:57:15 +0000 Subject: [PATCH] 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 --- src/gtk/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.45.2