* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change from 2011-05-04.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
diff --git a/ChangeLog b/ChangeLog
index 917e08b..6026a59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-20 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
+ from 2011-05-04.
+
2011-06-18 Werner Lemberg <wl@gnu.org>
Update license documentation.
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index c24043f..54fcf7f 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -665,6 +665,9 @@
if ( delta1 < 0 )
delta2 = -delta2;
+ blue->ref.fit = FT_PIX_ROUND( blue->ref.cur );
+ blue->shoot.fit = blue->ref.fit + delta2;
+
#else
/* simplified version due to abs(dist) <= 48 */
@@ -682,10 +685,10 @@
if ( dist < 0 )
delta2 = -delta2;
-#endif
-
blue->ref.fit = FT_PIX_ROUND( blue->ref.cur );
- blue->shoot.fit = blue->ref.fit + delta2;
+ blue->shoot.fit = blue->ref.fit - delta2;
+
+#endif
blue->flags |= AF_LATIN_BLUE_ACTIVE;
}