Kaydet (Commit) 4c4b9db8 authored tarafından Ahmad H. Al Harthi's avatar Ahmad H. Al Harthi Kaydeden (comit) Ahmad Harthi

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

Change-Id: I512e6332a632acf90e4f995fbc7fd19e7ef094ec
Reviewed-on: https://gerrit.libreoffice.org/3644Tested-by: 's avatarAhmad Harthi <aalharthi@kacst.edu.sa>
Reviewed-by: 's avatarAhmad Harthi <aalharthi@kacst.edu.sa>
üst f8231a97
...@@ -1274,7 +1274,7 @@ void GenericSalLayout::KashidaJustify( long nKashidaIndex, int nKashidaWidth ) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment