f-spot r4488 - in trunk: . src/Widgets



Author: lmilesi
Date: Thu Oct 16 09:49:01 2008
New Revision: 4488
URL: http://svn.gnome.org/viewvc/f-spot?rev=4488&view=rev

Log:
2008-10-16  Lorenzo Milesi  <maxxer yetopen it>

        * src/Widgets/Filmstrip.cs: prevent crashing if no image in
        collection. fix bgo#556395



Modified:
   trunk/ChangeLog
   trunk/src/Widgets/Filmstrip.cs

Modified: trunk/src/Widgets/Filmstrip.cs
==============================================================================
--- trunk/src/Widgets/Filmstrip.cs	(original)
+++ trunk/src/Widgets/Filmstrip.cs	Thu Oct 16 09:49:01 2008
@@ -372,6 +372,9 @@
 			if (evnt.Window != GdkWindow)
 				return true;
 
+			if (selection.Collection.Count == 0)
+				return true;
+
 			if (extendable && Allocation.Width >= BackgroundPixbuf.Width + (2 * x_offset) + BackgroundTile.Width)
 				BackgroundPixbuf = null;
 



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