summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-09-19 10:56:48 +0000
committerThomas Lange <tl@openoffice.org>2002-09-19 10:56:48 +0000
commit714bc9a4871cc45e3f3ff11cd5e37b91f0d7d402 (patch)
tree5d5fb06a305a57628b7529246508d8fb264a5832 /linguistic
parentd43a0d9234deab3d9054e6c84038ce56fffe5c7b (diff)
#103476# assertion for useless argument combination added
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/hyphdsp.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 1bee136b9618..d4f91e4f8542 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hyphdsp.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: tl $ $Date: 2001-08-17 11:04:12 $
+ * last change: $Author: tl $ $Date: 2002-09-19 11:56:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -317,6 +317,8 @@ Reference< XHyphenatedWord > SAL_CALL
}
else
{
+ DBG_ASSERT( nMaxLeading < rWord.getLength(), "illegal argument combination" );
+
OUString aChkWord( rWord );
bWordModified |= RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))
@@ -434,6 +436,8 @@ Reference< XHyphenatedWord > SAL_CALL
}
else
{
+ DBG_ASSERT( nIndex < rWord.getLength(), "illegal argument combination" );
+
OUString aChkWord( rWord );
bWordModified |= RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))