B: Fix loading empty term-forms
This commit is contained in:
parent
ee0653c2bb
commit
e4727b52ab
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user