changeset 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 5e7a4d93d8d7
children ab77a22a2a36
files win/dw.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);