patches/koffice-07-shortcut.diff
changeset 866 e86b74f408cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-07-shortcut.diff	Sun Feb 03 14:10:31 2008 +0000
@@ -0,0 +1,14 @@
+--- koffice-1.6.3/lib/kofficecore/kkbdaccessextensions.cpp.orig	2008-02-03 11:36:55.023991307 +0530
++++ koffice-1.6.3/lib/kofficecore/kkbdaccessextensions.cpp	2008-02-03 11:57:11.812929397 +0530
+@@ -200,6 +200,11 @@
+         KShortcut revSc = d->revAction->shortcut();
+         KShortcut accessKeysSc = d->accessKeysAction->shortcut();
+         QKeyEvent* kev = dynamic_cast<QKeyEvent *>(e);
++
++	// Paranoid check for dynamic_cast failure
++	if (kev == NULL)
++		return false;
++
+         KKey k = KKey(kev);
+         KShortcut sc = KShortcut(k);
+         // kdDebug() << "KKbdAccessExtensions::eventFilter: Key press " << sc << endl;