Fix broken pattern conversion.

This commit is contained in:
Roman Telezhynskyi 2022-03-25 11:15:34 +02:00
parent 67161bcfcb
commit 250fa436c0
2 changed files with 15 additions and 0 deletions

View File

@ -359,6 +359,8 @@ void VPatternConverter::ApplyPatches()
case (FormatVersion(0, 8, 6)):
case (FormatVersion(0, 8, 7)):
case (FormatVersion(0, 8, 8)):
ToV0_8_8();
Q_FALLTHROUGH();
case (FormatVersion(0, 8, 9)):
case (FormatVersion(0, 8, 10)):
case (FormatVersion(0, 8, 11)):
@ -519,6 +521,18 @@ void VPatternConverter::ToV0_6_2()
Save();
}
//---------------------------------------------------------------------------------------------------------------------
void VPatternConverter::ToV0_8_8()
{
// TODO. Delete if minimal supported version is 0.8.8
Q_STATIC_ASSERT_X(VPatternConverter::PatternMinVer < FormatVersion(0, 8, 8),
"Time to refactor the code.");
SetVersion(QStringLiteral("0.8.8"));
RemoveGradationV0_8_8();
AddPieceUUIDV0_8_8();
Save();
}
//---------------------------------------------------------------------------------------------------------------------
void VPatternConverter::ToV0_9_0()
{

View File

@ -83,6 +83,7 @@ private:
void ToV0_4_4();
void ToV0_6_0();
void ToV0_6_2();
void ToV0_8_8();
void ToV0_9_0();
void TagUnitToV0_2_0();