aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2001-09-28 21:45:27 +0800
committeralex <alex@FreeBSD.org>2001-09-28 21:45:27 +0800
commit4ac3b19373f681bd79fb950b3d1c8ba84278b1d3 (patch)
tree10de37f613fb6dd0caf5686412b182ee7af12904 /devel
parentdf7daa32af5cf44a037d86089a0dae545ebca89f (diff)
downloadfreebsd-ports-gnome-4ac3b19373f681bd79fb950b3d1c8ba84278b1d3.tar.gz
freebsd-ports-gnome-4ac3b19373f681bd79fb950b3d1c8ba84278b1d3.tar.zst
freebsd-ports-gnome-4ac3b19373f681bd79fb950b3d1c8ba84278b1d3.zip
Don't crash if a menu contains no submenus.
Diffstat (limited to 'devel')
-rw-r--r--devel/tvision/Makefile1
-rw-r--r--devel/tvision/files/patch-lib::TMenuView.cc11
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/tvision/Makefile b/devel/tvision/Makefile
index ea9704c7b432..70181102deb9 100644
--- a/devel/tvision/Makefile
+++ b/devel/tvision/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tvision
PORTVERSION= 0.7
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= devel/lang/c++
diff --git a/devel/tvision/files/patch-lib::TMenuView.cc b/devel/tvision/files/patch-lib::TMenuView.cc
new file mode 100644
index 000000000000..3401d83fec28
--- /dev/null
+++ b/devel/tvision/files/patch-lib::TMenuView.cc
@@ -0,0 +1,11 @@
+--- lib/TMenuView.cc.old Fri Sep 28 15:40:42 2001
++++ lib/TMenuView.cc Fri Sep 28 15:41:40 2001
+@@ -470,7 +470,7 @@
+ if( p->command == 0 )
+ {
+ TMenuItem *T;
+- if( (T = findHotKey( p->subMenu->items, keyCode )) != 0 )
++ if( p->subMenu != 0 && (T = findHotKey( p->subMenu->items, keyCode )) != 0 )
+ return T;
+ }
+ else if( !p->disabled &&