marlin r1318 - trunk/src



Author: iain
Date: Sun Oct 19 01:39:20 2008
New Revision: 1318
URL: http://svn.gnome.org/viewvc/marlin?rev=1318&view=rev

Log:
Fix crash when Select All was used to select the whole sample


Modified:
   trunk/src/ChangeLog
   trunk/src/marlin-window-menu.c
   trunk/src/marlin-window.c

Modified: trunk/src/marlin-window-menu.c
==============================================================================
--- trunk/src/marlin-window-menu.c	(original)
+++ trunk/src/marlin-window-menu.c	Sun Oct 19 01:39:20 2008
@@ -395,7 +395,7 @@
 	g_object_set (G_OBJECT (copy),
 		      "dirty", TRUE,
 		      NULL);
-	
+
 	marlin_open_window_with_sample (copy);
 }
 
@@ -407,14 +407,14 @@
 	MarlinSample *sample;
 	MarlinUndoManager *undo;
 	MarlinUndoContext *ctxt;
-	
+
 	g_object_get (G_OBJECT (data),
 		      "sample", &sample,
 		      NULL);
 
 	undo = marlin_base_window_get_undo_manager (base);
 	ctxt = marlin_undo_manager_context_begin (undo, _("Select All"));
-	
+
 	marlin_window_select_all (MARLIN_WINDOW (data), ctxt);
 
 	marlin_undo_manager_context_end (undo, ctxt);

Modified: trunk/src/marlin-window.c
==============================================================================
--- trunk/src/marlin-window.c	(original)
+++ trunk/src/marlin-window.c	Sun Oct 19 01:39:20 2008
@@ -3766,7 +3766,7 @@
 		      NULL);
 	marlin_sample_selection_set (window->priv->selection,
 				     MARLIN_COVERAGE_BOTH,
-				     (guint64) 0, total,
+				     (guint64) 0, total - 1,
 				     ctxt);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]