Commit c7a2be62 authored by Daiki Ueno's avatar Daiki Ueno
Browse files

Set empty keysym matrix if keycode is 0.

parent a2c9aa67
......@@ -185,9 +185,10 @@ create_key (EekXkbLayout *layout,
bounds.height = xkb_to_pixmap_coord(layout, xkbbounds->y2 - xkbbounds->y1);
keycode = find_keycode (layout, name);
if (keycode == EEK_INVALID_KEYCODE)
if (keycode == EEK_INVALID_KEYCODE) {
num_groups = num_levels = 0;
else {
matrix = eek_symbol_matrix_new (0, 0);
} else {
KeySym keysym;
gint i, j;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment