Fix validation issue. Treat empty attribute as default value.

This commit is contained in:
Roman Telezhynskyi 2020-11-12 16:19:08 +02:00
parent 34fd0b81bf
commit 9e4fa8337d
2 changed files with 7 additions and 3 deletions

View File

@ -825,6 +825,7 @@
</xs:simpleType>
<xs:simpleType name="operationColors">
<xs:restriction base="xs:string">
<xs:enumeration value=""/><!--Same as default-->
<xs:enumeration value="default"/>
<xs:enumeration value="black"/>
<xs:enumeration value="green"/>
@ -857,6 +858,7 @@
</xs:simpleType>
<xs:simpleType name="operationPenStyle">
<xs:restriction base="xs:string">
<xs:enumeration value=""/><!--Same as default-->
<xs:enumeration value="default"/>
<xs:enumeration value="none"/>
<xs:enumeration value="hair"/>

View File

@ -31,15 +31,17 @@
#include <QString>
#include <QMetaType>
#include "../ifc/ifcdef.h"
class VGObject;
class VContainer;
struct SourceItem
{
quint32 id{0};
quint32 id{NULL_ID};
QString alias{};
QString penStyle{};
QString color{};
QString penStyle{TypeLineDefault};
QString color{ColorDefault};
};
Q_DECLARE_METATYPE(SourceItem)