Fixed issue #866. Valentina produces an invalid pattern file if a user defines
more than 9 materials. --HG-- branch : develop
This commit is contained in:
parent
2c7b21b98d
commit
20b3f034d4
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<xs:element name="patternMaterials" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||
<xs:element name="material" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
|
|
|
@ -390,6 +390,7 @@ extern const QString pl_mInterlining;
|
|||
extern const QString pl_wCut;
|
||||
extern const QString pl_wOnFold;
|
||||
|
||||
// Don't forget to syncronize with XSD schema.
|
||||
const int userMaterialPlaceholdersQuantity = 20;
|
||||
|
||||
extern const QStringList labelTemplatePlaceholders;
|
||||
|
|
Loading…
Reference in New Issue
Block a user