]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected inverted test in IsEmpty() (patch 1936052)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 6 Apr 2008 15:25:41 +0000 (15:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 6 Apr 2008 15:25:41 +0000 (15:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/textentry.h

index 93ae8fbf37f27a2a07d5dc6d636298e90d342560..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 GetLastPosition() > 0; }
+    bool IsEmpty() const { return GetLastPosition() <= 0; }
 
 
     // editing operations