bg_col = m_textBackgroundColour.GetColor();
PangoMatrix matrix = PANGO_MATRIX_INIT;
- pango_matrix_scale(&matrix, m_scaleX, m_scaleY);
- pango_matrix_rotate (&matrix, angle);
- pango_context_set_matrix (m_context, &matrix);
- pango_layout_context_changed (m_layout);
+ if (!wxIsSameDouble(m_scaleX, 1) || !wxIsSameDouble(m_scaleY, 1) || !wxIsNullDouble(angle))
+ {
+ pango_matrix_scale(&matrix, m_scaleX, m_scaleY);
+ pango_matrix_rotate(&matrix, angle);
+ pango_context_set_matrix(m_context, &matrix);
+ pango_layout_context_changed(m_layout);
+ }
int w, h;
pango_layout_get_pixel_size(m_layout, &w, &h);
wxDCImpl::ComputeScaleAndOrigin();
- // if scale has changed call SetPen to recalulate the line width
+ // if scale has changed call SetPen to recalculate the line width
if ( wxRealPoint(m_scaleX, m_scaleY) != origScale && m_pen.IsOk() )
{
// this is a bit artificial, but we need to force wxDC to think the pen