diff options
author | Choe Hwanjin <choe.hwanjin@gmail.com> | 2010-12-12 20:45:52 +0900 |
---|---|---|
committer | Choe Hwanjin <choe.hwanjin@gmail.com> | 2010-12-12 20:45:52 +0900 |
commit | 759613591ae49b4371f604b69814ec84f63516a1 (patch) | |
tree | 8f62dc5f6e4f7eaa134e6829065ba6b1b345de93 /hangul | |
parent | 79dbbac2e509a67a68a0db161f875c9ddef1a5d7 (diff) | |
download | libhangul-759613591ae49b4371f604b69814ec84f63516a1.tar.gz |
hangul_ic_select_keyboard() 함수에서 지정된 키보드를 못찾은 경우
한글 자판이 설정되지 않는 문제 수정
자판 찾기에 실패한 경우 기본자판으로 두벌식 자판을 설정함
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@232 8f00fcd2-89fc-0310-932e-b01be5b65e01
Diffstat (limited to 'hangul')
-rw-r--r-- | hangul/hangulinputcontext.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c index 03d1c9d..90d0f7f 100644 --- a/hangul/hangulinputcontext.c +++ b/hangul/hangulinputcontext.c @@ -1678,7 +1678,10 @@ hangul_ic_select_keyboard(HangulInputContext *hic, const char* id) if (keyboard != NULL) { hic->keyboard = keyboard; hic->combination = keyboard->combination_table; - } + } else { + hic->keyboard = &hangul_keyboard_2; + hic->combination = hangul_keyboard_2.combination_table; + } } void |