After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561779 - incorrect calculations in pango_matrix_concat implementation
incorrect calculations in pango_matrix_concat implementation
Product: pango
Classification: Platform
Component: general
Other All
: Normal normal
: ---
Assigned To: pango-maint
Depends on:
Reported: 2008-11-21 08:21 UTC by Michael Smirnov
Modified: 2008-11-21 18:24 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Michael Smirnov 2008-11-21 08:21:23 UTC
Please describe the problem:
y0 parameter of the resulting matrix is calculated incorrectly:

matrix->y0  = tmp.yx * new_matrix->y0 + tmp.yy * new_matrix->y0 + tmp.y0;

but it should be:

matrix->y0  = tmp.yx * new_matrix->x0 + tmp.yy * new_matrix->y0 + tmp.y0;

Steps to reproduce:

Actual results:

Expected results:

Does this happen every time?

Other information:
Comment 1 Behdad Esfahbod 2008-11-21 18:01:46 UTC
Oops.  Fixed.  Thanks.  Will be in 1.22.3 that I'll release this weekend.

2008-11-21  Behdad Esfahbod  <>

        Bug 561779 – incorrect calculations in pango_matrix_concat

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

Comment 2 Michael Smirnov 2008-11-21 18:24:02 UTC
Thank you.