]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textentry.h
pen.h depends from brush.h in compat mode
[wxWidgets.git] / include / wx / textentry.h
index 3d4863d881c4b87ddcb7644e3e84a0933b7ebfdb..93ae8fbf37f27a2a07d5dc6d636298e90d342560 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