Mercurial > dwindows
diff win/dw.c @ 71:291c30a92b9b
Fixed a bug where if dw_filesystem_* was used then the last column
wouldn't be optimized.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 10 Feb 2002 18:22:25 +0000 |
parents | 9510897c0b03 |
children | ab77a22a2a36 |
line wrap: on
line diff
--- a/win/dw.c Sun Feb 10 18:06:50 2002 +0000 +++ b/win/dw.c Sun Feb 10 18:22:25 2002 +0000 @@ -5387,7 +5387,7 @@ memcpy(&tempflags[l], flags, sizeof(unsigned long) * count); tempflags[count + l] = 0; cinfo->flags = tempflags; - cinfo->columns = count; + cinfo->columns = count + l; for(z=0;z<count;z++) @@ -5913,7 +5913,7 @@ /* Set the new sizes */ for(z=0;z<cinfo->columns;z++) - ListView_SetColumnWidth(handle, z, columns[z] + 15); + ListView_SetColumnWidth(handle, z, columns[z] + 16); free(columns); free(text);