diff options
-rw-r--r-- | src/declarative/fx/qfxitem.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index efdd4fc..0cc1fbc 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -1044,12 +1044,8 @@ void QFxItem::geometryChanged(const QRectF &newGeometry, if (d->_anchors) d->_anchors->d_func()->updateMe(); - if (newGeometry.size() != oldGeometry.size()) { - if (rotation() && transformOrigin() != QFxItem::TopLeft) - setRotation(rotation()); - if (scale() && transformOrigin() != QFxItem::TopLeft) - setScale(scale()); - } + if (transformOrigin() != QFxItem::TopLeft) + setTransformOriginPoint(d->computeTransformOrigin()); if (newGeometry.x() != oldGeometry.x()) emit xChanged(); |