Source-Changes-HG archive

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

[src/trunk]: src/lib/libmenu * Fixed bug where unpost would delwin a sub-wind...



details:   https://anonhg.NetBSD.org/src/rev/d3efeef95168
branches:  trunk
changeset: 495787:d3efeef95168
user:      blymn <blymn%NetBSD.org@localhost>
date:      Sun Aug 06 13:32:59 2000 +0000

description:
* Fixed bug where unpost would delwin a sub-window that libmenu did not
  create.

diffstat:

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

diffs (22 lines):

diff -r 44847d1efe81 -r d3efeef95168 lib/libmenu/post.c
--- a/lib/libmenu/post.c        Sun Aug 06 13:22:16 2000 +0000
+++ b/lib/libmenu/post.c        Sun Aug 06 13:32:59 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.7 2000/08/06 13:32:59 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