diff options
Diffstat (limited to 'sw/source/core/text/inftxt.cxx')
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 54572000cdc6..a5e45bede697 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: inftxt.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-19 00:08:25 $ + * last change: $Author: ama $ $Date: 2000-09-22 11:40:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -940,8 +940,12 @@ xub_StrLen SwTxtFormatInfo::ScanPortionEnd( const xub_StrLen nEnd, sal_Bool bSki default: if( cTabDec == cPos ) { - cHookChar = cPos; - return i; + ASSERT( cPos, "Unexspected end of string" ); + if( cPos ) // robust + { + cHookChar = cPos; + return i; + } } } } |