summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Hong <khong@openoffice.org>2002-12-05 18:12:14 +0000
committerKarl Hong <khong@openoffice.org>2002-12-05 18:12:14 +0000
commitc3e0c48f863fc573f58bbe81ed6531fc8444f911 (patch)
tree199577c287c839480728147b9e8acaccf65c8e43
parentb03315dba7ca918a616c5c33d035486574c6d04d (diff)
#105979# fixed forbidden end of line characters problem
-rw-r--r--i18npool/source/breakiterator/breakiterator_cjk.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx
index 05e708513d86..378af045eb68 100644
--- a/i18npool/source/breakiterator/breakiterator_cjk.cxx
+++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: breakiterator_cjk.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: khong $ $Date: 2002-10-11 18:52:28 $
+ * last change: $Author: khong $ $Date: 2002-12-05 19:12:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,7 +124,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
} else if (bOptions.applyForbiddenRules && 0 < nStartPos && nStartPos < Text.getLength()) {
while (nStartPos > 0 &&
(bOptions.forbiddenBeginCharacters.indexOf(Text[nStartPos]) != -1 ||
- bOptions.forbiddenEndCharacters.indexOf(Text[nStartPos]) != -1))
+ bOptions.forbiddenEndCharacters.indexOf(Text[nStartPos-1]) != -1))
nStartPos--;
}