Группа :: Система/Библиотеки
Пакет: qt4
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: 0147-qbrush-detach-transform.diff
qt-bugs@ issue : N133486
Trolltech task ID : none
applied: no
author: Maurizio Monge <maurizio.monge@kdemail.net>
When calling QBrush::setMatrix, the brush is detached, but
the detach function does not copy the transformation matrix.
The following patch fixes this.
Index: src/gui/painting/qbrush.cpp
===================================================================
--- src/gui/painting/qbrush.cpp (revisione 593126)
+++ src/gui/painting/qbrush.cpp (copia locale)
@@ -518,6 +518,7 @@
x->ref = 1;
x->style = newStyle;
x->color = d->color;
+ x->transform = d->transform;
x = qAtomicSetPtr(&d, x);
if (!x->ref.deref())
cleanUp(x);