Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
[core] fix invalid global imname
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Apr 17, 2015
1 parent b301835 commit bf10b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/fcitx/ime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ boolean FcitxInstanceUpdateCurrentIM(FcitxInstance* instance, boolean force, boo
boolean forceSwtich = force;
boolean updateGlobal = false;
/* global index is not valid, that's why we need to fix it. */
if (globalIndex == 0) {
if (globalIndex <= 0) {
UT_array *ime = &instance->imes;
FcitxIM *im = (FcitxIM*)utarray_eltptr(ime, 1);
if (im) {
Expand Down

0 comments on commit bf10b85

Please sign in to comment.