Fix wxGraphicsMatrix concatenation (Cairo)

The parameter matrix in wxGraphicsMatrixData::Concat() should be a multiplicand, not a multiplier.

Closes #17670.
This commit is contained in:
Artur Wieczorek 2016-09-18 23:07:59 +02:00
parent b6d44d5329
commit 4d6d73eab3

View File

@ -1266,7 +1266,8 @@ wxGraphicsObjectRefData *wxCairoMatrixData::Clone() const
// concatenates the matrix
void wxCairoMatrixData::Concat( const wxGraphicsMatrixData *t )
{
cairo_matrix_multiply( &m_matrix, &m_matrix, (cairo_matrix_t*) t->GetNativeMatrix());
// The parameter matrix (t) is the multiplicand.
cairo_matrix_multiply(&m_matrix, (cairo_matrix_t*) t->GetNativeMatrix(), &m_matrix);
}
// sets the matrix to the respective values