projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use wxPopupWindow for wxCombo (doesn't work yet)
[wxWidgets.git]
/
src
/
common
/
stringimpl.cpp
diff --git
a/src/common/stringimpl.cpp
b/src/common/stringimpl.cpp
index 95d686330143ace1c9ddc08b4d8c4c16448194fe..c8799442c379b82f23d5acfb7d8f75e69f0784e4 100644
(file)
--- a/
src/common/stringimpl.cpp
+++ b/
src/common/stringimpl.cpp
@@
-584,7
+584,7
@@
wxStringImpl& wxStringImpl::replace(size_t nStart, size_t nLen,
wxASSERT_MSG( nStart <= lenOld,
_T("index out of bounds in wxStringImpl::replace") );
size_t nEnd = nStart + nLen;
wxASSERT_MSG( nStart <= lenOld,
_T("index out of bounds in wxStringImpl::replace") );
size_t nEnd = nStart + nLen;
- if ( n
End > lenOld
)
+ if ( n
Len > lenOld - nStart
)
{
// nLen may be out of range, as it can be npos, just clump it down
nLen = lenOld - nStart;
{
// nLen may be out of range, as it can be npos, just clump it down
nLen = lenOld - nStart;