Bug 561779 – incorrect calculations in pango_matrix_concat
authorBehdad Esfahbod <behdad@gnome.org>
Fri, 21 Nov 2008 21:52:36 +0000 (21:52 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Fri, 21 Nov 2008 21:52:36 +0000 (21:52 +0000)
2008-11-21  Behdad Esfahbod  <behdad@gnome.org>

        Bug 561779 – incorrect calculations in pango_matrix_concat
        implementation

        * pango/pango-matrix.c (pango_matrix_concat): Fix bug in y0
        computation.

svn path=/trunk/; revision=2739

ChangeLog
pango/pango-matrix.c

index 6bdb997..b936000 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-21  Behdad Esfahbod  <behdad@gnome.org>
+
+       Bug 561779 – incorrect calculations in pango_matrix_concat
+       implementation
+
+       * pango/pango-matrix.c (pango_matrix_concat): Fix bug in y0
+       computation.
+
 2008-11-19  Behdad Esfahbod  <behdad@gnome.org>
 
        Bug 560730 – pango 1.22.2 build failure on Solaris 10, too many array
index c58e58a..70a1698 100644 (file)
@@ -192,7 +192,7 @@ pango_matrix_concat (PangoMatrix       *matrix,
   matrix->yx = tmp.yx * new_matrix->xx + tmp.yy * new_matrix->yx;
   matrix->yy = tmp.yx * new_matrix->xy + tmp.yy * new_matrix->yy;
   matrix->x0  = tmp.xx * new_matrix->x0 + tmp.xy * new_matrix->y0 + tmp.x0;
-  matrix->y0  = tmp.yx * new_matrix->y0 + tmp.yy * new_matrix->y0 + tmp.y0;
+  matrix->y0  = tmp.yx * new_matrix->x0 + tmp.yy * new_matrix->y0 + tmp.y0;
 }
 
 /**