diff -r 93b982ccede2 -r 5daf16870df6 src/svg/qsvgstructure.cpp --- a/src/svg/qsvgstructure.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/src/svg/qsvgstructure.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -357,15 +357,12 @@ m_systemLanguagePrefix = m_systemLanguage.mid(0, idx); } -QRectF QSvgStructureNode::bounds() const +QRectF QSvgStructureNode::bounds(QPainter *p, QSvgExtraStates &states) const { - if (m_bounds.isEmpty()) { - foreach(QSvgNode *node, m_renderers) { - m_bounds |= node->transformedBounds(QTransform()); - } - } - - return m_bounds; + QRectF bounds; + foreach(QSvgNode *node, m_renderers) + bounds |= node->transformedBounds(p, states); + return bounds; } QSvgNode * QSvgStructureNode::previousSiblingNode(QSvgNode *n) const