diff options
author | Thomas Lange <tl@openoffice.org> | 2001-07-03 11:26:08 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-07-03 11:26:08 +0000 |
commit | dbd065adfe507f40cc93944d8d1c156c33ac4aec (patch) | |
tree | a1b5aed7111d1beddf1b13cbb4719484eb774d53 /linguistic | |
parent | 364b6ba94e5f150dde1bdb51e25868cde0c5ce22 (diff) |
#83490# line break behine soft hyphen prohibited
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/hyphdsp.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx index c7dd8db4897c..75093868f70e 100644 --- a/linguistic/source/hyphdsp.cxx +++ b/linguistic/source/hyphdsp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hyphdsp.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: tl $ $Date: 2001-06-21 09:00:38 $ + * last change: $Author: tl $ $Date: 2001-07-03 12:26:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -317,6 +317,12 @@ Reference< XHyphenatedWord > SAL_CALL } else { + // allow only hyphenation positions to the left of the + // first soft-hyphen + INT32 nFistSoftHyphenPos = rWord.indexOf( SVT_SOFT_HYPHEN ); + if (nFistSoftHyphenPos >= 0 && nFistSoftHyphenPos <= nMaxLeading) + return xRes; + OUString aChkWord( rWord ); bWordModified |= RemoveHyphens( aChkWord ); if (IsIgnoreControlChars( rProperties, GetPropSet() )) |