From a7dec18a6858c47df26f9043e03c716bdcb6ef8d Mon Sep 17 00:00:00 2001
From: Zack Rusin <zack@tungstengraphics.com>
Date: Thu, 3 Jan 2008 08:42:39 -0500
Subject: [PATCH] if the element has no stroke, it's width is effectively 0, not
 whatever the document sets

---
 src/svg/qsvgnode.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/svg/qsvgnode.cpp b/src/svg/qsvgnode.cpp
index ca4a932..fa88076 100644
--- a/src/svg/qsvgnode.cpp
+++ b/src/svg/qsvgnode.cpp
@@ -290,7 +290,7 @@ qreal QSvgNode::strokeWidth() const
 {
     QSvgStrokeStyle *stroke = static_cast<QSvgStrokeStyle*>(
         styleProperty(QSvgStyleProperty::STROKE));
-    if (!stroke)
+    if (!stroke || stroke->qpen().style() == Qt::NoPen)
         return 0;
     return stroke->qpen().widthF();
 }
-- 
1.5.3.7

