summaryrefslogtreecommitdiffstats
path: root/devel/tvision
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2001-09-28 13:45:27 +0000
committeralex <alex@FreeBSD.org>2001-09-28 13:45:27 +0000
commit4ac3b19373f681bd79fb950b3d1c8ba84278b1d3 (patch)
tree10de37f613fb6dd0caf5686412b182ee7af12904 /devel/tvision
parentdf7daa32af5cf44a037d86089a0dae545ebca89f (diff)
downloadFreeBSD-ports-4ac3b19373f681bd79fb950b3d1c8ba84278b1d3.zip
FreeBSD-ports-4ac3b19373f681bd79fb950b3d1c8ba84278b1d3.tar.gz
Don't crash if a menu contains no submenus.
Diffstat (limited to 'devel/tvision')
-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 ea9704c..7018110 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 0000000..3401d83
--- /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 &&
OpenPOWER on IntegriCloud