From 67b6279b3e663cfd58e7f0182d0b69a475484e90 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Thu, 3 Jun 2010 15:24:39 +0800 Subject: [PATCH] --- yaml --- r: 204842 b: refs/heads/master c: 42ef223c4a0f6e34e13ccb503b423ebdc04878e1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/lxdialog/checklist.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f86cd2f6e9d9..3eba947ea477 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 39a4897c1bb66e8a36043c105d7fd73d8b32b480 +refs/heads/master: 42ef223c4a0f6e34e13ccb503b423ebdc04878e1 diff --git a/trunk/scripts/kconfig/lxdialog/checklist.c b/trunk/scripts/kconfig/lxdialog/checklist.c index bcc6f19c3a35..c92a05a2de17 100644 --- a/trunk/scripts/kconfig/lxdialog/checklist.c +++ b/trunk/scripts/kconfig/lxdialog/checklist.c @@ -175,6 +175,7 @@ int dialog_checklist(const char *title, const char *prompt, int height, 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;