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:
committed by
Ahmad Harthi
parent
f8231a9765
commit
4c4b9db8bb
@@ -1274,7 +1274,7 @@ void GenericSalLayout::KashidaJustify( long nKashidaIndex, int nKashidaWidth )
|
|||||||
// calculate gap, ignore if too small
|
// calculate gap, ignore if too small
|
||||||
int nGapWidth = pG->mnNewWidth - pG->mnOrigWidth;
|
int nGapWidth = pG->mnNewWidth - pG->mnOrigWidth;
|
||||||
// worst case is one kashida even for mini-gaps
|
// worst case is one kashida even for mini-gaps
|
||||||
if( 3 * nGapWidth < nKashidaWidth )
|
if( nGapWidth < nKashidaWidth )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
nKashidaCount = 0;
|
nKashidaCount = 0;
|
||||||
|
Reference in New Issue
Block a user