OSDN Git Service

Ignore inactive IMEs. snap-110814
authorKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Sat, 13 Aug 2011 06:19:24 +0000 (15:19 +0900)
committerKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Sat, 13 Aug 2011 06:19:24 +0000 (15:19 +0900)
xkeymacs/imelist.cpp

index 2c229c2..bcc10ee 100644 (file)
@@ -54,6 +54,8 @@ void IMEList::GetTSF()
        TF_LANGUAGEPROFILE prof;\r
        ULONG fetch;\r
        while (pEnum->Next(1, &prof, &fetch) == S_OK) {\r
+               if (!prof.fActive)\r
+                       continue;\r
                BSTR bstr;\r
                hr = pProfiles->GetLanguageProfileDescription(prof.clsid, langid, prof.guidProfile, &bstr);\r
                if (FAILED(hr))\r