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);