[f-spot/FSPOT_0_6_0_STABLE] avoid a crash on --view mode with a single image
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] avoid a crash on --view mode with a single image
- Date: Fri, 21 Aug 2009 15:35:00 +0000 (UTC)
commit fc263b1c8e16745b46e8cd5408a60514a5ee5d5a
Author: Stephane Delcroix <stephane delcroix org>
Date: Fri Aug 21 17:02:01 2009 +0200
avoid a crash on --view mode with a single image
src/Widgets/SlideShow.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Widgets/SlideShow.cs b/src/Widgets/SlideShow.cs
index 6559e13..c458a05 100644
--- a/src/Widgets/SlideShow.cs
+++ b/src/Widgets/SlideShow.cs
@@ -95,6 +95,9 @@ namespace FSpot.Widgets
next = null;
}
+ if (item == null || item.Current == null)
+ return;
+
using (ImageFile img = ImageFile.Create (item.Current.DefaultVersionUri)) {
try {
using (var pb = img.Load ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]