bugfix in lookupMorpho

This commit is contained in:
Krasimir Angelov
2022-07-06 19:25:37 +02:00
parent c3c1cf2a64
commit c783da51a4

View File

@@ -290,12 +290,14 @@ int text_cmp(PgfText *sentence, ref<PgfSequence> seq,
else if (ucs1i < ucs2i) { else if (ucs1i < ucs2i) {
return -1; return -1;
} }
else if (ucs1 > ucs2) { else if (res1 == 0) {
if (ucs1 > ucs2) {
res1 = 1; res1 = 1;
} else if (ucs1 < ucs2) { } else if (ucs1 < ucs2) {
res1 = -1; res1 = -1;
} }
} }
}
} }
PGF_INTERNAL PGF_INTERNAL