]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textentry.h
Minor corrections to make dist after reports
[wxWidgets.git] / include / wx / textentry.h
index 3d4863d881c4b87ddcb7644e3e84a0933b7ebfdb..28bffe991379838ccd2489f6acf0f55e1926d142 100644 (file)
@@ -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