mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
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:
parent
325c867e19
commit
99e35d407e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user