f-spot r4043 - in trunk/extensions: . FolderExport
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4043 - in trunk/extensions: . FolderExport
- Date: Thu, 5 Jun 2008 07:26:00 +0000 (UTC)
Author: sdelcroix
Date: Thu Jun 5 07:25:59 2008
New Revision: 4043
URL: http://svn.gnome.org/viewvc/f-spot?rev=4043&view=rev
Log:
2008-06-05 Stephane Delcroix <sdelcroix novell com>
* FolderExport/FolderExport.cs: No longer crash on missing SHARPEN
keyy. Fixes bgo #536707.
Modified:
trunk/extensions/ChangeLog
trunk/extensions/FolderExport/FolderExport.addin.xml
trunk/extensions/FolderExport/FolderExport.cs
Modified: trunk/extensions/FolderExport/FolderExport.addin.xml
==============================================================================
--- trunk/extensions/FolderExport/FolderExport.addin.xml (original)
+++ trunk/extensions/FolderExport/FolderExport.addin.xml Thu Jun 5 07:25:59 2008
@@ -1,5 +1,5 @@
<Addin namespace="FSpot"
- version="0.4.4.0"
+ version="0.4.4.1"
name="Folder Export"
description="This extension allows you to export your photos to HTML galleries, Original galleries or just to a folder."
author="F-Spot team"
Modified: trunk/extensions/FolderExport/FolderExport.cs
==============================================================================
--- trunk/extensions/FolderExport/FolderExport.cs (original)
+++ trunk/extensions/FolderExport/FolderExport.cs Thu Jun 5 07:25:59 2008
@@ -503,7 +503,16 @@
FilterSet req_set = new FilterSet ();
req_set.Add (new ResizeFilter ((uint)Math.Max (req.Width, req.Height)));
- if ((bool)Preferences.Get (FolderExport.SHARPEN_KEY)) {
+
+ bool sharpen;
+ try {
+ sharpen = (bool)Preferences.Get (FolderExport.SHARPEN_KEY);
+ } catch (NullReferenceException) {
+ sharpen = true;
+ Preferences.Set (FolderExport.SHARPEN_KEY, true);
+ }
+
+ if (sharpen) {
if (req.Name == "lq")
req_set.Add (new SharpFilter (0.1, 2, 4));
if (req.Name == "thumbs")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]