B: Fix loading empty term-forms

This commit is contained in:
Ivan 2024-08-30 17:06:05 +03:00
parent ee0653c2bb
commit e4727b52ab

View File

@ -75,7 +75,10 @@ void LegacyCstLoader::LoadTerms(const BOOL hasTerms, const BOOL multipleTerms) {
cst->term = LexicalTerm{ mfc::ToSTL(termRefs.at(0)), mfc::ToSTL(terms.at(0)) };
for (uint8_t j = 0; j < size(TERM_FORMS); ++j) {
cst->term.SetForm(TERM_FORMS.at(j), mfc::ToSTL(termForms.at(0).at(j)));
const auto formText = mfc::ToSTL(termForms.at(0).at(j));
if (!formText.empty()) {
cst->term.SetForm(TERM_FORMS.at(j), formText);
}
}
}