1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Patch from Rene Post: ctrl_{drag,drop}list both now initialise the

same set of structure fields that the ordinary ctrl_listbox does.

[originally from svn r3189]
This commit is contained in:
Simon Tatham 2003-05-12 13:41:41 +00:00
parent f2834e065d
commit c5c5edf0b5

View File

@ -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;
}