[f-spot: 3/4] Set default resize value to 400. lp#513864 bgo#608440
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot: 3/4] Set default resize value to 400. lp#513864 bgo#608440
- Date: Wed, 17 Feb 2010 16:59:37 +0000 (UTC)
commit a5d93630914d0653eb89c2a73d79842d6d52ba8a
Author: Yves Kurz <yves kurz gmail com>
Date: Wed Feb 3 23:17:32 2010 +0100
Set default resize value to 400. lp#513864 bgo#608440
extensions/Exporters/FolderExport/FolderExport.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/extensions/Exporters/FolderExport/FolderExport.cs b/extensions/Exporters/FolderExport/FolderExport.cs
index 4bdc338..6e8f067 100644
--- a/extensions/Exporters/FolderExport/FolderExport.cs
+++ b/extensions/Exporters/FolderExport/FolderExport.cs
@@ -409,7 +409,11 @@ namespace FSpotFolderExport {
break;
case SIZE_KEY:
- size_spin.Value = (double) Preferences.Get<int> (key);
+ int size;
+ if (Preferences.TryGet<int> (key, out size))
+ size_spin.Value = (double) size;
+ else
+ size_spin.Value = 400;
break;
case OPEN_KEY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]