diff options
Diffstat (limited to 'src/svg')
-rw-r--r-- | src/svg/qsvgnode.cpp | 2 | ||||
-rw-r--r-- | src/svg/qsvgstyle_p.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/svg/qsvgnode.cpp b/src/svg/qsvgnode.cpp index 5f323b1..de5a568 100644 --- a/src/svg/qsvgnode.cpp +++ b/src/svg/qsvgnode.cpp @@ -322,6 +322,8 @@ qreal QSvgNode::strokeWidth() const styleProperty(QSvgStyleProperty::STROKE)); if (!stroke) return 0; + if (stroke->stroke().brush().style() == Qt::NoBrush) + return 0; return stroke->width(); } diff --git a/src/svg/qsvgstyle_p.h b/src/svg/qsvgstyle_p.h index 1cff561..f358bc1 100644 --- a/src/svg/qsvgstyle_p.h +++ b/src/svg/qsvgstyle_p.h @@ -508,6 +508,11 @@ public: return m_gradientResolved; } + QPen stroke() const + { + return m_stroke; + } + private: // stroke v v 'inherit' | <Paint.datatype> // stroke-dasharray v v 'inherit' | <StrokeDashArrayValue.datatype> |