Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/lib/libmenu Pull up revision 1.7 (via patch, bugfix)



details:   https://anonhg.NetBSD.org/src/rev/da144f0c8fed
branches:  netbsd-1-5
changeset: 489277:da144f0c8fed
user:      blymn <blymn%NetBSD.org@localhost>
date:      Sat Aug 26 12:36:56 2000 +0000

description:
Pull up revision 1.7 (via patch, bugfix)

Prevent unpost deleting a subwindow that it did not create.

diffstat:

 lib/libmenu/post.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r c2984d27495b -r da144f0c8fed lib/libmenu/post.c
--- a/lib/libmenu/post.c        Sat Aug 26 05:26:44 2000 +0000
+++ b/lib/libmenu/post.c        Sat Aug 26 12:36:56 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: post.c,v 1.6 2000/05/05 11:28:56 blymn Exp $   */
+/*     $NetBSD: post.c,v 1.6.4.1 2000/08/26 12:36:56 blymn Exp $       */
 
 /*-
  * Copyright (c) 1998-1999 Brett Lymn (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -121,8 +121,10 @@
        menu->posted = 0;
        werase(menu->menu_subwin);
        wrefresh(menu->menu_subwin);
-       delwin(menu->menu_subwin);
-       if (menu->we_created == 1) menu->menu_subwin = NULL;
+       if (menu->we_created == 1) {
+               delwin(menu->menu_subwin);
+               menu->menu_subwin = NULL;
+       }
        wrefresh(menu->menu_win);
        return E_OK;
 }



Home | Main Index | Thread Index | Old Index