X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e072113323f06e5c71f8d02789c17df541751eaf..4f2511d706e5274a34e1521e11c1b95fed735b42:/include/wx/textentry.h?ds=sidebyside diff --git a/include/wx/textentry.h b/include/wx/textentry.h index 3d4863d881..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 GetValue().empty(); } + bool IsEmpty() const { return GetLastPosition() <= 0; } // editing operations