Fix validation issue. Treat empty attribute as default value.
This commit is contained in:
parent
34fd0b81bf
commit
9e4fa8337d
|
@ -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"/>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user