diff --git a/src/app/xml/vpattern.cpp b/src/app/xml/vpattern.cpp index dd214a9ca..c7806ca8e 100644 --- a/src/app/xml/vpattern.cpp +++ b/src/app/xml/vpattern.cpp @@ -84,6 +84,11 @@ void VPattern::CreateEmptyFile(const QString &tablePath) QDomElement patternElement = this->createElement(TagPattern); patternElement.appendChild(createComment("Valentina pattern format.")); + + QDomElement version = createElement(TagVersion); + QDomText newNodeText = createTextNode(VAL_STR_VERSION); + version.appendChild(newNodeText); + patternElement.appendChild(createElement(TagAuthor)); patternElement.appendChild(createElement(TagDescription)); patternElement.appendChild(createElement(TagNotes)); diff --git a/src/app/xml/vpattern.h b/src/app/xml/vpattern.h index da166a6b0..1c61de1f7 100644 --- a/src/app/xml/vpattern.h +++ b/src/app/xml/vpattern.h @@ -53,6 +53,8 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Document::Documents) // max support version of format #define VAL_VERSION 0x000100 +#define VAL_STR_VERSION "0.1.0" + /** * @brief The VPattern class working with pattern file. */