mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 5dc17c22: Fix: wrong suggestion comparator.
* commit '5dc17c22ca88cf1dcf2225d8b252bcfa8c84d364': Fix: wrong suggestion comparator.
This commit is contained in:
commit
00293346a9
@ -30,9 +30,9 @@ class SuggestedWord {
|
||||
public:
|
||||
bool operator()(const SuggestedWord &left, const SuggestedWord &right) {
|
||||
if (left.getScore() != right.getScore()) {
|
||||
return left.getScore() < right.getScore();
|
||||
return left.getScore() > right.getScore();
|
||||
}
|
||||
return left.getCodePointCount() > right.getCodePointCount();
|
||||
return left.getCodePointCount() < right.getCodePointCount();
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user