From 66037b4de6baded89f0bb072cd9f33c103f45dd1 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Thu, 20 Jan 2011 09:59:45 +0000 Subject: add textstyle in gc; fix hz_cache memory leak issue; fix selection issue in radiobox. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1250 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/widgets/listctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/rtgui/widgets/listctrl.c') diff --git a/components/rtgui/widgets/listctrl.c b/components/rtgui/widgets/listctrl.c index 10087dc8d1..29b7fca013 100644 --- a/components/rtgui/widgets/listctrl.c +++ b/components/rtgui/widgets/listctrl.c @@ -24,7 +24,7 @@ static void _rtgui_listctrl_constructor(struct rtgui_listctrl *ctrl) RTGUI_WIDGET(ctrl)->flag |= RTGUI_WIDGET_FLAG_FOCUSABLE; - ctrl->current_item = 0; + ctrl->current_item = -1; ctrl->items_count = 0; ctrl->page_items = 0; ctrl->on_item = 0; -- cgit v1.3.1