# HG changeset patch # User ulion # Date 1197978857 0 # Node ID cc1b8a9d0ae244c028c45a6cb3886f30ff11c5ba # Parent e5a7f0401180e48c7d5fda9385c088f337eead76 Here should add the minb to x when x>=0 because in later code we use 'x - minb' to draw bg box when x>=0. diff -r e5a7f0401180 -r cc1b8a9d0ae2 libmenu/menu_list.c --- a/libmenu/menu_list.c Tue Dec 18 10:45:43 2007 +0000 +++ b/libmenu/menu_list.c Tue Dec 18 11:54:17 2007 +0000 @@ -68,7 +68,7 @@ count++; } if(need_w > dw) need_w = dw; - if(x > 0) + if(x >= 0) x += mpriv->minb; if(y > 0) y += mpriv->minb;