X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..ae0500e538e2fb821ef1ad8529aed7999acf7a19:/dialog.c 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; }