From: ewt Date: Wed, 24 Sep 1997 02:29:44 +0000 (+0000) Subject: initialize things better X-Git-Tag: r0-12~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc3ac6cfe60161f7f30792f3ec112fbf53d14c49;p=thirdparty%2Fnewt.git initialize things better --- diff --git a/listbox.c b/listbox.c index 0d2e345..7e2f36e 100644 --- a/listbox.c +++ b/listbox.c @@ -82,13 +82,13 @@ newtComponent newtListbox(int left, int top, int height, int flags) { li->userHasSetWidth = 0; li->beenDisplayed = 0; li->startShowItem = 0; + li->sbAdjust = 0; li->flags = flags & (NEWT_FLAG_RETURNEXIT|NEWT_FLAG_DOBORDER|NEWT_FLAG_MULTIPLE); if (height) { li->grow = 0; if (flags & NEWT_FLAG_NOSCROLL) { sb = NULL; - li->sbAdjust = 0; } else { sb = newtVerticalScrollbar(left, top, height, COLORSET_LISTBOX, COLORSET_ACTLISTBOX);