Fixed: IOS crash on startup when phrase language file is missing.

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-07-12 14:07:02 +03:00
parent 3da8dcbdac
commit 7d688f1a64

View file

@ -242,9 +242,17 @@ public:
return; return;
} }
// no _wk file or empty
if (addition.size() == 0) if (addition.size() == 0)
return; return;
// no _lang file or empty
if (reference.size() == 0)
{
text = prepareExcelSheet(addition);
return;
}
// create missing columns in reference and addition to make the diff // create missing columns in reference and addition to make the diff
for (uint i=0; i<reference.ColCount || i < addition.ColCount; ++i) for (uint i=0; i<reference.ColCount || i < addition.ColCount; ++i)
{ {