From 4ca761b162db788d98d164ed4881c7ec61760c40 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 12 May 2003 13:41:41 +0000 Subject: [PATCH] Patch from Rene Post: ctrl_{drag,drop}list both now initialise the same set of structure fields that the ordinary ctrl_listbox does. git-svn-id: svn://svn.tartarus.org/sgt/putty@3189 cda61777-01e9-0310-a592-d414129be87e --- dialog.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.11.0