summaryrefslogtreecommitdiffstats
path: root/src/shortcuts.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-06-02 14:12:25 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-06-02 14:12:25 +0000
commit1d6310b79a448d31df299e98a1016658f87b539c (patch)
tree47429a031d1d4e60bf2ce8fc5da904d1bb0078db /src/shortcuts.cpp
parenttext tolbar usability: enable alt+x, enable esc to defocus entry fields and c... (diff)
downloadinkscape-1d6310b79a448d31df299e98a1016658f87b539c.tar.gz
inkscape-1d6310b79a448d31df299e98a1016658f87b539c.zip
fix 1498769
(bzr r1129)
Diffstat (limited to 'src/shortcuts.cpp')
-rw-r--r--src/shortcuts.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}