diff -r b72c6db6890b -r 5dc02b23752f src/svg/qsvgtinydocument.cpp --- a/src/svg/qsvgtinydocument.cpp Wed Jun 23 19:07:03 2010 +0300 +++ b/src/svg/qsvgtinydocument.cpp Tue Jul 06 15:10:48 2010 +0300 @@ -277,7 +277,7 @@ p->save(); - const QRectF elementBounds = node->transformedBounds(QTransform()); + const QRectF elementBounds = node->transformedBounds(); mapSourceToTarget(p, bounds, elementBounds); QTransform originalTransform = p->worldTransform(); @@ -299,7 +299,7 @@ for (int i = parentApplyStack.size() - 1; i >= 0; --i) parentApplyStack[i]->applyStyle(p, m_states); - + // Reset the world transform so that our parents don't affect // the position QTransform currentTransform = p->worldTransform(); @@ -432,8 +432,7 @@ const QSvgNode *node = scopeNode(id); if (!node) node = this; - - return node->transformedBounds(QTransform()); + return node->transformedBounds(); } bool QSvgTinyDocument::elementExists(const QString &id) const