X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=dialog.c;h=53b642980a8d640fe13613d1b17e6d6a54d46194;hb=bee5812a496b6d24b6ac5bb13e8aa4de1d2f61b7;hp=94572dbceea049761e14d5683696f51a33084c69;hpb=d36a4c3685f17057ba2c80ac471c1284b615469f;p=PuTTY.git diff --git a/dialog.c b/dialog.c index 94572dbc..53b64298 100644 --- a/dialog.c +++ b/dialog.c @@ -362,6 +362,8 @@ union control *ctrl_droplist(struct controlset *s, char *label, char shortcut, c->listbox.draglist = 0; c->listbox.multisel = 0; c->listbox.percentwidth = percentage; + c->listbox.ncols = 0; + c->listbox.percentages = NULL; return c; } @@ -376,6 +378,8 @@ union control *ctrl_draglist(struct controlset *s,char *label,char shortcut, c->listbox.draglist = 1; c->listbox.multisel = 0; c->listbox.percentwidth = 100; + c->listbox.ncols = 0; + c->listbox.percentages = NULL; return c; }