changeset 655:beacc4c68c53

Fix last patch, only set vf->clicked_mark for a valid mark.
author zas_
date Tue, 13 May 2008 19:45:04 +0000
parents 6dcfac4b356f
children a2d74c9843db
files src/view_file_list.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_list.c	Tue May 13 19:32:25 2008 +0000
+++ b/src/view_file_list.c	Tue May 13 19:45:04 2008 +0000
@@ -590,8 +590,8 @@
 		    col_idx >= FILE_COLUMN_MARKS && col_idx <= FILE_COLUMN_MARKS_LAST)
 			return FALSE;
 
-		vf->clicked_mark = 1 + (col_idx - FILE_COLUMN_MARKS);
-		g_assert(vf->clicked_mark >= 1 && vf->clicked_mark <= FILEDATA_MARKS_SIZE);
+		if (col_idx >= FILE_COLUMN_MARKS && col_idx <= FILE_COLUMN_MARKS_LAST)
+			vf->clicked_mark = 1 + (col_idx - FILE_COLUMN_MARKS);
 
 		store = gtk_tree_view_get_model(GTK_TREE_VIEW(widget));