summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/transforms/qtransform.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/transforms/qtransform.cpp b/src/core/transforms/qtransform.cpp
index 5ec3fe6c0..3e5a84b55 100644
--- a/src/core/transforms/qtransform.cpp
+++ b/src/core/transforms/qtransform.cpp
@@ -114,7 +114,9 @@ void QTransform::copy(const QNode *ref)
{
QComponent::copy(ref);
const QTransform *transform = static_cast<const QTransform *>(ref);
- d_func()->m_matrix = transform->d_func()->m_matrix;
+ // We need to copy the matrix with all the pending
+ // transformations applied
+ d_func()->m_matrix = transform->matrix();
}
QList<QAbstractTransform *> QTransform::transforms() const