diff --git a/src/item.cpp b/src/item.cpp index 8905c521f1..925a90876c 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -106,7 +106,9 @@ void Item::setPosition(const QPoint &point) if (m_position != point) { scheduleRepaint(boundingRect()); m_position = point; - updateBoundingRect(); + if (m_parentItem) { + m_parentItem->updateBoundingRect(); + } scheduleRepaint(boundingRect()); Q_EMIT positionChanged(); }