From 99e35d407e9b68a9618668843c482cc74955bbfd Mon Sep 17 00:00:00 2001 From: blacksun Date: Tue, 5 Jan 2016 14:56:44 +0000 Subject: [PATCH] Minor change git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4308 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetxml.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/qetxml.cpp b/sources/qetxml.cpp index c216912aa..9ecc357da 100644 --- a/sources/qetxml.cpp +++ b/sources/qetxml.cpp @@ -57,7 +57,11 @@ QPen QETXML::penFromXml(const QDomElement &element) { QPen pen; - if (!(!element.isNull() && element.tagName() == "pen")) return pen; + if (!(!element.isNull() && element.tagName() == "pen")) + { + pen.setStyle(Qt::DashLine); + return pen; + } QString style = element.attribute("style", "DashLine"); if (style == "SolidLine") pen.setStyle(Qt::SolidLine);