summaryrefslogtreecommitdiff
path: root/src/List.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/List.c')
-rw-r--r--src/List.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/List.c b/src/List.c
index 1e2d3b2..8b7e7c0 100644
--- a/src/List.c
+++ b/src/List.c
@@ -359,7 +359,6 @@ static void
CalculatedValues(Widget w)
{
ListWidget lw = (ListWidget)w;
- int i;
/* If list is NULL then the list will just be the name of the widget */
if (lw->list.list == NULL) {
@@ -374,6 +373,8 @@ CalculatedValues(Widget w)
/* Get column width */
if (LongestFree(lw)) {
+ int i;
+
lw->list.longest = 0; /* so it will accumulate real longest below */
for (i = 0 ; i < lw->list.nitems; i++) {