Fixed the pattern converter

--HG--
branch : feature
This commit is contained in:
BojanKverh 2016-07-24 19:48:31 +02:00
parent 85db8f84e6
commit 1b5ca4e23d
2 changed files with 12 additions and 2 deletions

View File

@ -173,7 +173,9 @@ void VPatternConverter::ApplyPatches()
ValidateXML(XSDSchema(0x000302), fileName); ValidateXML(XSDSchema(0x000302), fileName);
V_FALLTHROUGH V_FALLTHROUGH
case (0x000302): case (0x000302):
break; ToV0_3_3();
ValidateXML(XSDSchema(0x000303), fileName);
V_FALLTHROUGH
default: default:
break; break;
} }
@ -316,6 +318,13 @@ void VPatternConverter::ToV0_3_2()
Save(); Save();
} }
//---------------------------------------------------------------------------------------------------------------------
void VPatternConverter::ToV0_3_3()
{
SetVersion(QStringLiteral("0.3.3"));
Save();
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPatternConverter::TagUnitToV0_2_0() void VPatternConverter::TagUnitToV0_2_0()
{ {

View File

@ -41,7 +41,7 @@ public:
static const QString PatternMaxVerStr; static const QString PatternMaxVerStr;
static const QString CurrentSchema; static const QString CurrentSchema;
static constexpr int PatternMinVer = CONVERTER_VERSION_CHECK(0, 1, 0); static constexpr int PatternMinVer = CONVERTER_VERSION_CHECK(0, 1, 0);
static constexpr int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 3, 2); static constexpr int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 3, 3);
protected: protected:
virtual int MinVer() const Q_DECL_OVERRIDE; virtual int MinVer() const Q_DECL_OVERRIDE;
@ -73,6 +73,7 @@ private:
void ToV0_3_0(); void ToV0_3_0();
void ToV0_3_1(); void ToV0_3_1();
void ToV0_3_2(); void ToV0_3_2();
void ToV0_3_3();
void TagUnitToV0_2_0(); void TagUnitToV0_2_0();
void TagIncrementToV0_2_0(); void TagIncrementToV0_2_0();