[Libreoffice-commits] core.git: vcl/source
Ahmad H. Al Harthi
aalharthi at kacst.edu.sa
Sat Apr 27 23:15:39 PDT 2013
vcl/source/gdi/sallayout.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4c4b9db8bbaed7acd064a4015fabe784c4fbca21
Author: Ahmad H. Al Harthi <aalharthi at kacst.edu.sa>
Date: Sun Apr 28 09:03:03 2013 +0300
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 at kacst.edu.sa>
Reviewed-by: Ahmad Harthi <aalharthi at kacst.edu.sa>
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 9d315e3..d4696c7 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -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;
More information about the Libreoffice-commits
mailing list