From: buliabyak Date: Fri, 2 Jun 2006 14:12:25 +0000 (+0000) Subject: fix 1498769 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e976c7756d5e54bcdc8ba075aaf14968258657c3;p=inkscape.git fix 1498769 --- diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp index cf7f485c6..12657410c 100644 --- a/src/shortcuts.cpp +++ b/src/shortcuts.cpp @@ -117,13 +117,13 @@ static void read_shortcuts_file(char const *filename) { } gchar const *keyval_name=iter->attribute("key"); - if (!keyval_name) { + if (!keyval_name || !*keyval_name) { // that's ok, it's just listed for reference without assignment, skip it continue; } guint keyval=gdk_keyval_from_name(keyval_name); - if (keyval == GDK_VoidSymbol) { + if (keyval == GDK_VoidSymbol || keyval == 0) { g_warning("Unknown keyval %s for %s", keyval_name, verb_name); continue; }