summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-11-06 22:30:32 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-11-06 22:34:05 +0200
commit7fdb418aea11a4e1f09a04c02d125880925272aa (patch)
tree9f08e4f3b674556b58d619f9e52497ab84557c86 /sw
parent6723fd9d185c8911d83e6b1fd06476e7c5cefce2 (diff)
tdf#65344: Don’t put Kashida before any final char
If we didn’t find any known good position, not inserting Kashida at all is better than inserting it randomly. Change-Id: I075f8414b7f0a0aeb4d27d372c7eae51f4b5c37b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/porlay.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index 1edf156e10ff..7bd6706a895d 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -1056,10 +1056,7 @@ void SwScriptInfo::InitScriptInfo( const SwTextNode& rNode, bool bRTL )
{
// remaining right joiners
// Reh, Zain, Thal,
- if ( isRehChar ( cCh ) || // Reh Zain (right joining)
- // final form may appear in the middle of word
- ( 0x60C <= cCh && 0x6FE >= cCh // all others
- && nIdx == nWordLen - 1)) // only at end of word
+ if ( isRehChar ( cCh ) ) // Reh Zain (right joining)
{
SAL_WARN_IF( 0 == cPrevCh, "sw.core", "No previous character" );
// check if character is connectable to previous character,