f-spot r3792 - trunk/src/Widgets
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3792 - trunk/src/Widgets
- Date: Thu, 27 Mar 2008 09:31:28 +0000 (GMT)
Author: sdelcroix
Date: Thu Mar 27 09:31:28 2008
New Revision: 3792
URL: http://svn.gnome.org/viewvc/f-spot?rev=3792&view=rev
Log:
fixes a crash in the filmstrip
Modified:
trunk/src/Widgets/Filmstrip.cs
Modified: trunk/src/Widgets/Filmstrip.cs
==============================================================================
--- trunk/src/Widgets/Filmstrip.cs (original)
+++ trunk/src/Widgets/Filmstrip.cs Thu Mar 27 09:31:28 2008
@@ -475,9 +475,15 @@
protected virtual Pixbuf GetPixbuf (int i, bool highlighted)
{
+ string thumb_path;
Pixbuf current;
- string thumb_path = FSpot.ThumbnailGenerator.ThumbnailPath ((selection.Collection [i]).DefaultVersionUri);
- current = thumb_cache.GetThumbnailForPath (thumb_path);
+ try {
+ thumb_path = FSpot.ThumbnailGenerator.ThumbnailPath ((selection.Collection [i]).DefaultVersionUri);
+ current = thumb_cache.GetThumbnailForPath (thumb_path);
+ } catch (IndexOutOfRangeException) {
+ thumb_path = null;
+ current = null;
+ }
if (current == null) {
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]