From: Vadim Zeitlin Date: Sun, 6 Apr 2008 15:25:41 +0000 (+0000) Subject: corrected inverted test in IsEmpty() (patch 1936052) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a7507230d112784566220df064df001eb53ba85d corrected inverted test in IsEmpty() (patch 1936052) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/textentry.h b/include/wx/textentry.h index 93ae8fbf37..28bffe9913 100644 --- a/include/wx/textentry.h +++ b/include/wx/textentry.h @@ -45,7 +45,7 @@ public: virtual wxString GetValue() const = 0; virtual wxString GetRange(long from, long to) const; - bool IsEmpty() const { return GetLastPosition() > 0; } + bool IsEmpty() const { return GetLastPosition() <= 0; } // editing operations