summaryrefslogtreecommitdiff
path: root/tools/source/string
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2003-11-12 16:16:03 +0000
committerOliver Bolte <obo@openoffice.org>2003-11-12 16:16:03 +0000
commit9f084d5cf96e7b4230391894f55f0e1a1a6f6a32 (patch)
tree9ac1320ed3cb9846723d04b3ca6193ae92416d8b /tools/source/string
parentb43bcbc3213fa9b5d9369d7a6dd54048c90bd962 (diff)
INTEGRATION: CWS texteng02 (1.4.82); FILE MERGED
2003/11/03 15:41:34 mt 1.4.82.1: #109019# Check index for greater *equal* in ::Erase( nPos, Count )
Diffstat (limited to 'tools/source/string')
-rw-r--r--tools/source/string/strimp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx
index 9e9457064141..349dafbc9c23 100644
--- a/tools/source/string/strimp.cxx
+++ b/tools/source/string/strimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: strimp.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 17:04:52 $
+ * last change: $Author: obo $ $Date: 2003-11-12 17:16:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -987,7 +987,7 @@ STRING& STRING::Erase( xub_StrLen nIndex, xub_StrLen nCount )
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
// Ist der Index ausserhalb des Strings oder ist nCount == 0
- if ( (nIndex > mpData->mnLen) || !nCount )
+ if ( (nIndex >= mpData->mnLen) || !nCount )
return *this;
// nCount darf nicht ueber das Stringende hinnausgehen