From 9e4fa8337da95a0a570aece622c35fae0160f358 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 12 Nov 2020 16:19:08 +0200 Subject: [PATCH] Fix validation issue. Treat empty attribute as default value. --- src/libs/ifc/schema/pattern/v0.8.10.xsd | 2 ++ src/libs/vtools/tools/toolsdef.h | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/libs/ifc/schema/pattern/v0.8.10.xsd b/src/libs/ifc/schema/pattern/v0.8.10.xsd index 55d5765f8..66ca72f87 100644 --- a/src/libs/ifc/schema/pattern/v0.8.10.xsd +++ b/src/libs/ifc/schema/pattern/v0.8.10.xsd @@ -825,6 +825,7 @@ + @@ -857,6 +858,7 @@ + diff --git a/src/libs/vtools/tools/toolsdef.h b/src/libs/vtools/tools/toolsdef.h index f9743797f..cf144504b 100644 --- a/src/libs/vtools/tools/toolsdef.h +++ b/src/libs/vtools/tools/toolsdef.h @@ -31,15 +31,17 @@ #include #include +#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)