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
This commit is contained in:
Vadim Zeitlin
2006-10-26 11:57:15 +00:00
parent be326aad64
commit 14be47346e

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