projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5166d04
)
fix index checking in GetRange()
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Thu, 24 Jul 2008 00:05:14 +0000
(
00:05
+0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Thu, 24 Jul 2008 00:05:14 +0000
(
00:05
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54777
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/textentrycmn.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/textentrycmn.cpp
b/src/common/textentrycmn.cpp
index 5ec6850708fdb42077a14be4657664141676f8fb..4adca176b049568a93603b7ffe79127742fdf709 100644
(file)
--- a/
src/common/textentrycmn.cpp
+++ b/
src/common/textentrycmn.cpp
@@
-41,10
+41,10
@@
wxString wxTextEntryBase::GetRange(long from, long to) const
{
wxString sel;
wxString value = GetValue();
{
wxString sel;
wxString value = GetValue();
-
- if (
(from < to) && ((long)value.length() >= to + from)
)
+
+ if (
from < to && (long)value.length() >= to
)
{
{
- sel =
GetValue()
.substr(from, to - from);
+ sel =
value
.substr(from, to - from);
}
return sel;
}
return sel;