From: ewt Date: Tue, 24 Apr 2001 21:31:20 +0000 (+0000) Subject: bug fix for multiple selections (Rodrigo Luiz Beber ) X-Git-Tag: r0-50-24~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a73ca3e5dcf3280c0d2780f5d1bd9e3cebe3e598;p=thirdparty%2Fnewt.git bug fix for multiple selections (Rodrigo Luiz Beber ) --- diff --git a/listbox.c b/listbox.c index e86fb18..734a3cc 100644 --- a/listbox.c +++ b/listbox.c @@ -546,7 +546,7 @@ static struct eventResult listboxEvent(newtComponent co, struct event ev) { switch(ev.u.key) { case ' ': if(!(li->flags & NEWT_FLAG_MULTIPLE)) break; - newtListboxSelectItem(co, li->boxItems[li->currItem].data, + newtListboxSelectItem(co, newtListboxGetCurrent(co), NEWT_FLAGS_TOGGLE); er.result = ER_SWALLOWED; /* We don't break here, because it is cool to be able to