git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
menuconfig: fix to center checklist correctly in a corner case
[pandora-kernel.git]
/
scripts
/
kconfig
/
lxdialog
/
checklist.c
diff --git
a/scripts/kconfig/lxdialog/checklist.c
b/scripts/kconfig/lxdialog/checklist.c
index
bcc6f19
..
c92a05a
100644
(file)
--- a/
scripts/kconfig/lxdialog/checklist.c
+++ b/
scripts/kconfig/lxdialog/checklist.c
@@
-175,6
+175,7
@@
do_resize:
check_x = 0;
item_foreach()
check_x = MAX(check_x, strlen(item_str()) + 4);
+ check_x = MIN(check_x, list_width);
check_x = (list_width - check_x) / 2;
item_x = check_x + 4;