use less expensive GetLastPosition() instead of GetValue() to implement IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e072113323
commit
2f74c9c6b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user