From 9f084d5cf96e7b4230391894f55f0e1a1a6f6a32 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Wed, 12 Nov 2003 16:16:03 +0000 Subject: 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 ) --- tools/source/string/strimp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/source/string') 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 -- cgit