tags 491126 + patch
thanks

Here is a patch (extracted from upstream svn) that fixes the problem.

Cheers,
-- 
Arnaud Cornet
diff -puriN f-spot-0.4.4.orig/debian/patches/00list f-spot-0.4.4/debian/patches/00list
--- f-spot-0.4.4.orig/debian/patches/00list	2008-09-21 11:31:19.000000000 +0200
+++ f-spot-0.4.4/debian/patches/00list	2008-09-21 11:32:36.000000000 +0200
@@ -1,5 +1,6 @@
 # Patches from upstream SVN
 svn-044-4010_gio-sharp-destdir
+svn_folder-export.dpatch
 
 # Patches that haven't been applied upstream yet.
 debian_fix-distclean
diff -puriN f-spot-0.4.4.orig/debian/patches/svn_folder-export.dpatch f-spot-0.4.4/debian/patches/svn_folder-export.dpatch
--- f-spot-0.4.4.orig/debian/patches/svn_folder-export.dpatch	1970-01-01 01:00:00.000000000 +0100
+++ f-spot-0.4.4/debian/patches/svn_folder-export.dpatch	2008-09-21 11:32:36.000000000 +0200
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## svn_folder-export.dpatch by Arnaud Cornet <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
[EMAIL PROTECTED]@
+diff -puriN f-spot-0.4.4.orig/extensions/FolderExport/FolderExport.cs f-spot-0.4.4/extensions/FolderExport/FolderExport.cs
+--- f-spot-0.4.4.orig/extensions/FolderExport/FolderExport.cs	2008-09-21 11:15:50.000000000 +0200
++++ f-spot-0.4.4/extensions/FolderExport/FolderExport.cs	2008-09-21 11:17:25.000000000 +0200
+@@ -503,7 +503,14 @@ namespace FSpotFolderExport {
+ 				
+ 						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")

Reply via email to