diff options
author | alex <alex@FreeBSD.org> | 2001-09-28 13:45:27 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2001-09-28 13:45:27 +0000 |
commit | 4ac3b19373f681bd79fb950b3d1c8ba84278b1d3 (patch) | |
tree | 10de37f613fb6dd0caf5686412b182ee7af12904 /devel/tvision | |
parent | df7daa32af5cf44a037d86089a0dae545ebca89f (diff) | |
download | FreeBSD-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/Makefile | 1 | ||||
-rw-r--r-- | devel/tvision/files/patch-lib::TMenuView.cc | 11 |
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 && |