changeset 25421:cc1b8a9d0ae2

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.
author ulion
date Tue, 18 Dec 2007 11:54:17 +0000
parents e5a7f0401180
children 31bc1206890c
files libmenu/menu_list.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;