summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-25 11:35:45 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-25 11:38:40 (GMT)
commitf8acf3b9a9398eabef98be7007fd6766574a788a (patch)
tree89451638a0ad845e4be93f8fc2177418b1b79754
parent8a7700ffb5e4959e788861e4862ebc1a7a3ad3b1 (diff)
downloadQt-f8acf3b9a9398eabef98be7007fd6766574a788a.zip
Qt-f8acf3b9a9398eabef98be7007fd6766574a788a.tar.gz
Qt-f8acf3b9a9398eabef98be7007fd6766574a788a.tar.bz2
Fix taskbar in plasma
Author: Kim
-rw-r--r--src/svg/qsvgnode.cpp2
-rw-r--r--src/svg/qsvgstyle_p.h5
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>