]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
initialize things better
authorewt <ewt>
Wed, 24 Sep 1997 02:29:44 +0000 (02:29 +0000)
committerewt <ewt>
Wed, 24 Sep 1997 02:29:44 +0000 (02:29 +0000)
listbox.c

index 0d2e3455f0b30b307ae61e5caa49c98a1f36687d..7e2f36e27d074ec3653148f27192e1188758c145 100644 (file)
--- 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);