X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e072113323f06e5c71f8d02789c17df541751eaf..80255b7eaf9427daf6fa21a3f27e4475dcc54cf8:/include/wx/textentry.h 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