Minor change

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4308 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun 2016-01-05 14:56:44 +00:00
parent 325c867e19
commit 99e35d407e

View File

@ -57,7 +57,11 @@ QPen QETXML::penFromXml(const QDomElement &element)
{ {
QPen pen; 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"); QString style = element.attribute("style", "DashLine");
if (style == "SolidLine") pen.setStyle(Qt::SolidLine); if (style == "SolidLine") pen.setStyle(Qt::SolidLine);