diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-03-08 15:15:44 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-03-08 16:15:53 (GMT) |
commit | ea9f2aeba6f18d19d6a82b3a829373ec032af14f (patch) | |
tree | a90af7f1061a3d7623c2969bdf1f628d99045e0a /src/svg/qsvgstructure_p.h | |
parent | 7b500ed543bb86429ef6fdb82b103784d6cc6a0c (diff) | |
download | Qt-ea9f2aeba6f18d19d6a82b3a829373ec032af14f.zip Qt-ea9f2aeba6f18d19d6a82b3a829373ec032af14f.tar.gz Qt-ea9f2aeba6f18d19d6a82b3a829373ec032af14f.tar.bz2 |
Fixed bounds calculation in QtSvg.
This commit fixes an auto-test failure after fixing QTBUG-8733.
The calculated element bounds should now be much tighter and
respect the width of non-cosmetic pens.
Task-number: QTBUG-8733
Reviewed-by: Trond
Diffstat (limited to 'src/svg/qsvgstructure_p.h')
-rw-r--r-- | src/svg/qsvgstructure_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/svg/qsvgstructure_p.h b/src/svg/qsvgstructure_p.h index fd6eb0a..dd82fc0 100644 --- a/src/svg/qsvgstructure_p.h +++ b/src/svg/qsvgstructure_p.h @@ -74,14 +74,13 @@ public: ~QSvgStructureNode(); QSvgNode *scopeNode(const QString &id) const; void addChild(QSvgNode *child, const QString &id); - virtual QRectF bounds() const; + virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const; QSvgNode *previousSiblingNode(QSvgNode *n) const; QList<QSvgNode*> renderers() const { return m_renderers; } protected: QList<QSvgNode*> m_renderers; QHash<QString, QSvgNode*> m_scope; QList<QSvgStructureNode*> m_linkedScopes; - mutable QRectF m_bounds; }; class QSvgG : public QSvgStructureNode |