Commit cf5e4968 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Windows printing: Preserve painter when syncing state.

Fix a performance regression introduced by

 . The picture painter
was replaced by another painter.

Task-number: QTBUG-40068
Task-number: QTBUG-38329
Change-Id: Ida51edd61c197f862adebdcdc685ebc105fe07a8
Reviewed-by: default avatarMichael Bruning <>
Reviewed-by: default avatarLars Knoll <>
parent e746e2a1
......@@ -346,7 +346,10 @@ void QAlphaPaintEngine::flushAndInit(bool init)
*d->m_picpainter->d_func()->state = *painter()->d_func()->state;
QPainterState &state = *d->m_picpainter->d_func()->state;
QPainter *oldPainter = state.painter;
state = *painter()->d_func()->state;
state.painter = oldPainter;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment