Set empty keysym matrix if keycode is 0.

This commit is contained in:
Daiki Ueno
2011-02-02 13:10:07 +09:00
parent a2c9aa6742
commit c7a2be629f

View File

@ -185,9 +185,10 @@ create_key (EekXkbLayout *layout,
bounds.height = xkb_to_pixmap_coord(layout, xkbbounds->y2 - xkbbounds->y1); bounds.height = xkb_to_pixmap_coord(layout, xkbbounds->y2 - xkbbounds->y1);
keycode = find_keycode (layout, name); keycode = find_keycode (layout, name);
if (keycode == EEK_INVALID_KEYCODE) if (keycode == EEK_INVALID_KEYCODE) {
num_groups = num_levels = 0; num_groups = num_levels = 0;
else { matrix = eek_symbol_matrix_new (0, 0);
} else {
KeySym keysym; KeySym keysym;
gint i, j; gint i, j;