fdo#35320 A fix for Arabic justification problem caused by kashidas

Change-Id: I512e6332a632acf90e4f995fbc7fd19e7ef094ec
Reviewed-on: https://gerrit.libreoffice.org/3644
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
This commit is contained in:
Ahmad H. Al Harthi
2013-04-28 09:03:03 +03:00
committed by Ahmad Harthi
parent f8231a9765
commit 4c4b9db8bb

View File

@@ -1274,7 +1274,7 @@ void GenericSalLayout::KashidaJustify( long nKashidaIndex, int nKashidaWidth )
// calculate gap, ignore if too small
int nGapWidth = pG->mnNewWidth - pG->mnOrigWidth;
// worst case is one kashida even for mini-gaps
if( 3 * nGapWidth < nKashidaWidth )
if( nGapWidth < nKashidaWidth )
continue;
nKashidaCount = 0;